Reputation: 7
I am having trouble with if-else syntax. The error says the remaining text does not appear to be part of the formula. How can I resolve this?
NumberVar k:={@Counting_Data}/{@Counting_Fail}
if k > 2 then
StringVar l:="Failed"
else if k <= 2 and k>0
StringVar l:="Promoted"
else if k = 0 then
StringVar l:="Passed"
else ""
Upvotes: 0
Views: 856
Reputation: 1645
NumberVar k:={@Counting_Data}/{@Counting_Fail};
if k > 2 then
StringVar l:="Failed"
else if k <= 2 and k>0 then
l:="Promoted"
else if k = 0 then
l:="Passed"
else ""
Upvotes: 1