How to use or/|| in an expression
Hi,
I want to write an expression to find the last day of the month. To find the last day of the month i have written the following expression;
If(equals(@String.toInt(String.substring(@DateTime.getCurrentDateStamp(),4,6)),01||03||05||07||08||10||12), "2017" + @String.substring(@DateTime.getCurrentDateStamp(),4,6) + "31", "010101")
This is the error that i''m getting;
Invalid expression or reference: line 1:74 mismatched input ',' expecting {')', '-', '+', '=', '*', '/', '%', '<', '>', '<=', '>=', '==', '!=', '<>', '^=', '~=', '&&', '||', '?', '+=', '-=', '*=', '/=', '%='}
@If(@equals(@String.toInt(String.substring(@DateTime.getCurrentDateStamp(),4,6)),01||03||05||07||08||10||12)),"2017"[email protected](@DateTime.getCurrentDateStamp(),4,6)+"31","010101")
^
The ||/or doesn't seem to work, can anyone help me figure out what i'm doing wrong here?