Conditional Loop
Posted: January 17th, 2010, 6:58 pm
Equivalents across two or so languages that all do the same thing.
Compares two variables (two integers "a" and "b"), which will return "YAY!" if a is greater than b, otherwise it yells at you.
Java:
LabVIEW:
The "false" part of the LabVIEW conditional looks much like the same, though with different text.
-Tanner
Compares two variables (two integers "a" and "b"), which will return "YAY!" if a is greater than b, otherwise it yells at you.
Java:
Code: Select all
int a = 5;
int b = 5;
if (a > b)
{
System.out.println("YAY!");
} else if (a < b) {
System.out.println("I yell at you!");
}
LabVIEW:
The "false" part of the LabVIEW conditional looks much like the same, though with different text.
-Tanner