Hi,
I have the following code, I was wondering its possible for someone to show me the equivalent of the code in the IF .. THEN format .
Thank YouCode:A= 5 + (B % 4 = 3)? 1:0)
Printable View
Hi,
I have the following code, I was wondering its possible for someone to show me the equivalent of the code in the IF .. THEN format .
Thank YouCode:A= 5 + (B % 4 = 3)? 1:0)
Your code is invalid. You have 3 closing brackets, but only 1 opening bracket.
Assuming it should be:
Then the following javascript would work:Code:A = 5 + ((B % 4 = 3)? 1:0)
Code:var A = 5;
if(B % 4 == 3){
A++;
}
ok, thank you that was helpful