Question

1
Replies
1094
Views
LauraK68 Member since 2017 1 post
Iqibt
Posted: 3 years ago
Last activity: 3 years ago
Closed

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"+@String.substring(@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?

Low-Code App Development
Moderation Team has archived post
Share this page LinkedIn