|
-
Dec 11th, 2013, 08:41 PM
#1
Thread Starter
Frenzied Member
[RESOLVED] quick javascript question
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 .
Code:
A= 5 + (B % 4 = 3)? 1:0)
Thank You
-
Dec 11th, 2013, 09:57 PM
#2
Re: quick javascript question
Your code is invalid. You have 3 closing brackets, but only 1 opening bracket.
Assuming it should be:
Code:
A = 5 + ((B % 4 = 3)? 1:0)
Then the following javascript would work:
Code:
var A = 5;
if(B % 4 == 3){
A++;
}
-
Dec 11th, 2013, 10:06 PM
#3
Thread Starter
Frenzied Member
Re: quick javascript question
ok, thank you that was helpful
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|