Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: KellyRay on November 14, 2013, 11:51:27 AM
-
What would be the best way to compare a variable against two other variables? I'm thinking of a range. If variable 1 is greater than this var 2 send event x if less than var 3 send event y.
Any thoughts?
-
Its a matter of sequencing, which is the priority decision?
You can use a single State and put Int Compare actions in a comparison sequence of priority. You can only fire one event, so you only need to compare one of the variables at a time and if the condition is not met (ie X is not greater than Y) then choose blank events and it will proceed through the state and execute the next action (compare X to Z).
Make sense?
-
Yes, I got it now. I was trying to make it harder than it needed to be. Thanks!