playMaker

Author Topic: Wording a conditional expression  (Read 856 times)

George

  • Playmaker Newbie
  • *
  • Posts: 15
Wording a conditional expression
« on: November 13, 2021, 02:32:52 PM »
I am wanting to have a check to see if something is above a certain number and below another and have this as the check but it seems the syntax is wrong, can anyone suggest why ? it's accepted but once past 5000 does not switch off and i'm checking every frame

$(FRAMEDEX)>0 &&$(FRAMEDEX)<5000

i am just wondering the correct way to word this does it look wrong to anyone ?

i want the check to see if framedex is above zero and below 5000

Groo Gadgets

  • Beta Group
  • Full Member
  • *
  • Posts: 175
Re: Wording a conditional expression
« Reply #1 on: November 14, 2021, 05:25:55 PM »
Hey George,

You're right, it's a syntax issue, this works fine on my end:
FRAMEDEX > 0 && FRAMEDEX < 5000

Cheers,

Simon