How can I put multiple conditions into an IF block? I have tried the following and it doesnt work ;
[AS]if(_root.neo.hitTest(_root.camera2)) & (camera2Off = true){[/AS]
I have also tried two &'s but that doesnt work ether
How can I put multiple conditions into an IF block? I have tried the following and it doesnt work ;
[AS]if(_root.neo.hitTest(_root.camera2)) & (camera2Off = true){[/AS]
I have also tried two &'s but that doesnt work ether
Your parenthesis are a bit off…
[AS]if(_root.neo.hitTest(_root.camera2) && camera2Off == true){ }[/AS]
or
[AS]if(_root.neo.hitTest(_root.camera2) && (camera2Off == true)){ }[/AS]
This might work too…
[AS]if(_root.neo.hitTest(_root.camera2) && camera2Off){ }[/AS]
Note: When setting things to true or false you can use the variable name itself to check for true or !+variable name for false in an if statement… for example…
camera2Off = camera2Off is true
!camera2Off = camera2Off is false
:: Copyright KIRUPA 2024 //--