-
linking a conditional statement to a variable? expression syntax
Hello!
I am trying to make it so that the variable ‘rates’ is set to 500 if the variable ‘temp’ is above 60, and rates is set to 150 if temp is below 60
rates = if(temp>60){500} else {150}
When I use that syntax it fails
My entire syntax is:
temp = thisComp.layer(“Audio Amplitude”).effect(“Both Channels”)(“Slider”)/30;
rates = if(temp>60){500} else {150}
How do I fix the definition of ‘rates’ so that it works properly?