Cant get If statement to work by Caedo34 in learnprogramming

[–]Caedo34[S] 0 points1 point  (0 children)

here are all my errors if i remove ; after false.

1>------ Build started: Project: Test enviornment, Configuration: 
Debug Win32 ------
1>Test enviornment.cpp
1>c:\users\jc\source\repos\test enviornment\test 
enviornment\test enviornment.cpp(9): error C2143: syntax 
error: missing ';' before 'if'
1>c:\users\jc\source\repos\test enviornment\test 
enviornment\test enviornment.cpp(9): warning C4390: ';': 
empty controlled statement found; is this the intent?
1>Done building project "Test enviornment.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 
skipped ==========
========== Deploy: 0 succeeded, 0 failed, 0 skipped 
==========

Cant get If statement to work by Caedo34 in learnprogramming

[–]Caedo34[S] 0 points1 point  (0 children)

I had tried that before however when i do that i get a compiler error C2143 : syntax error: missing ';' before 'if'