Page 1 of 1

Conditional Loop

Posted: January 17th, 2010, 6:58 pm
by Tanner
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:

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.
Conditional Picture
Conditional Picture
Conditional.PNG (5.94 KiB) Viewed 32 times


-Tanner