Tinderbox Forum

Conditional statement with inequality

I know this is a simple question, but I cannot get a stamp to work with the following code:
If($New_Eq_Delta<13.0){$Color="Bright blue";}else{$Color="Green"};

So I am not sure what I am doing wrong.

Thanks, John

Action code is case-sensitive (see more). With that in mind, a conditional statement starts if( not If( (i.e. with a lowercase ā€˜iā€™).

Named colours are also case sensitive (more here and here) so you need to use bright blue and green unless you have created user colours with initial capital characters.

More on Tinderbox coding conventions.

1 Like

Thanks @mwra, I know it was something simple.

1 Like