Flash "OR" help!!
Flash "OR" help!!
- Started
- Last post
- 2 Responses
- J
I'm struggling with syntax!!
I want to say : If a varible called "pageid" is blue, or orange or purple or green... do something...
...but can anyone tell me what's wrong?
if (pageid = "blue" || "orange" || "purple" || "green")
- unfittoprint0
it's not = but ==, and it should be used in ever boolean operation:
if (pageid == "blue" || pageid == "orange" || pageid == "purple" || pageid == "green")
- J0
My word... "you am tha man"... etc
Yep... that'll be it! Thanks a million! It works!
(just spent 2 hours trying just about every combination of possibilities!)