(Question about LUA, dont worry if you dont know java ;P)
I am learning Java now and there you have two kinds of if statements, the one that is printable:
In Java:
System.out.println( ( random_var > 1)? "Heey guys" : "See you later guys" );
Basicly it questions if random_var is bigger than one and if this is true then it prints "Heey guys" and if it is false then it prints "See you later guys".
You also have the other if statement, and this one is similair to LUA.
in LUA:
if random_var == 5 then
print("Hello World!")
else
print("Bye World!")
end
in Java:
if (random_var == 5){
System.out.println("Hello world!");
} else{
System.out.println("Bye world!");
}
Now my question is:
Is the first if statement also in LUA?
Thanks :)/>