Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi I have a decode below but want to have more than one value. How do I separate the expression
row1.STATUS.equals("Active")?"1":row1.STATUS row1.STATUS.equals("Inactive")?"0":row1.STATUS
thx really appreciate it now works
What does the happy face mean for a separator? It still doesn't work it only works if I use one value
(row1.STATUS.equals("Active"))?"1"row1.STATUS.equals("Inactive"))?"0":row1.STATUS
is that better?
Sorry new to this but below is what I put in and get an error is the syntax correct
(row1.STATUS.equals("Active"))?"1":row1.STATUS.equals("Inactive"))?"0":row1.STATUS
(row1.STATUS.equals("Active"))?"1": (row1.STATUS.equals("Inactive"))?"0":row1.STATUS
it's inline if:
(contition)?ifConditionIsTrue:else
so you can write :
(contition1)?ifCondition1isTruecontition2)?ifCondition2isTrue:else
thx really appreciate it now works