if expresion not working VEX

   1484   3   0
User Avatar
Member
20 posts
Joined: Sept. 2019
Offline
if ( $F < 16 && $F > 70, 1, 0)

what is wrong here? I'm using a switch node and I want to have this expression where I want input 0 from frame 16 - 70 FRAME
Edited by billyslol09 - March 30, 2020 08:11:43
User Avatar
Member
77 posts
Joined: Feb. 2017
Offline
first, it is not VEX…
second, $F < 16 && $F > 70 means the moment of $F must < 16 and > 70, it is impossible, so the result of ($F < 16 && $F > 70) is always False(0)
Edited by zengchen - March 30, 2020 08:24:49
My Youtube Channel [www.youtube.com]
User Avatar
Member
2041 posts
Joined: Sept. 2015
Offline
Your probably wanting:

if ( $F < 16 || $F > 70, 1, 0)
?
User Avatar
Member
8555 posts
Joined: July 2007
Offline
or just:
$F < 16 || $F > 70
if is unnecessary
Edited by tamte - March 30, 2020 10:25:32
Tomas Slancik
FX Supervisor
Method Studios, NY
  • Quick Links