Having Trouble checking is a variable it greater then something.
Posted: Thu Feb 01, 2024 1:08 am
I am trying to check if a variable is greater than a number. It seems to be treating them as strings.
I have a variable "day" defined as a long type with an expression: DayOfYear(StrToDateTime(date_as_string)) <----- This is "supposed" to output as a long value.
Lets say for example the above returns 31 as a result.
I am trying to check if this "long" variable is greater than a number : {day>30?"greater","less"} this doesnt print anything.
So I tried just adding to it: {day+5}, but this outputs 315 and not 36 like I would expect.
Can someone help me with what I am doing wrong?
Thanks.
I have a variable "day" defined as a long type with an expression: DayOfYear(StrToDateTime(date_as_string)) <----- This is "supposed" to output as a long value.
Lets say for example the above returns 31 as a result.
I am trying to check if this "long" variable is greater than a number : {day>30?"greater","less"} this doesnt print anything.
So I tried just adding to it: {day+5}, but this outputs 315 and not 36 like I would expect.
Can someone help me with what I am doing wrong?
Thanks.