-
if else statement
I’m trying to switch between fill colors starting with an expression I found here. I added an if/else statement and wanted to include a logical or. What did I miswrite here?
color1 = [255];
color2 = [200,0,0];
r = transform.rotation;
if ((r < 100) || (r > 400)){
r = color1;}else{
r = color2