if expresion not working VEX

   1479   3   0
User Avatar
Member
20 posts
Joined: 9月 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 - 2020年3月30日 08:11:43
User Avatar
Member
77 posts
Joined: 2月 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 - 2020年3月30日 08:24:49
My Youtube Channel [www.youtube.com]
User Avatar
Member
2039 posts
Joined: 9月 2015
Offline
Your probably wanting:

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