Joined: 06 Jun 2018
Online Status: Offline
Posts: 2
Topic: Convert IF THEN ELSE to CASE statement Posted: 11 Jun 2018 at 10:19am
I have the below if then else statement and need help converting to a CASE statement.
if(isnull({@cond1})=false) then 'Cond1'
else if(isnull({@cond2})=false) then 'Cond2'
else if({Command.Age}<3) then 'Under 3'
else if({Command.Age}>17) then 'Above 18'
else 'Between 3 to 17'
This categorizes each element only to one column and that is incorrect. Need the element to be counted in multiple columns. Eg. in 'Cond1' column and one of the age columns or 'Cond1' and 'Cond2' and one of the age columns.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum