Question

1
Replies
1252
Views
Laura Kiwiet (LauraK68)
Iqibt

Iqibt
NL
LauraK68 Member since 2017 1 post
Iqibt
Posted: October 19, 2017
Last activity: October 19, 2017
Posted: 19 Oct 2017 5:16 EDT
Last activity: 19 Oct 2017 15:33 EDT
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, This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.