Conditional Loop

01110000011100100110111101100111011100100110000101101101
Locked
User avatar
Tanner
Alumni
Posts: 1351
Joined: May 27th, 2009, 5:26 pm
Team Position: Alumni
Location: Suwanee, GA
Contact:

Conditional Loop

Post 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 28 times


-Tanner
Words of the Year: Tautology, Hysteresis, Buxom, Purvey
"Crossing into established events is strictly forbidden. Except for cheap tricks." - Doctor Who
"Excuse me, I'm making perfect sense you're just not keeping up." - Doctor Who
Locked

Who is online

Users browsing this forum: No registered users and 1 guest