LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

what is the definition of if else

standard C allows an "if" statement to be true if the value in the "if" is a non-zero number.  Is this also true of the CVI compliler? If the statement returns a -1, is the "if" true or false?
0 Kudos
Message 1 of 2
(2,999 Views)
Yes, the CVI compiler is ANSI compliant, which means that the body of an "if" statement will be executed if the condition evaluates to a non-zero value.
0 Kudos
Message 2 of 2
(2,985 Views)