Ishti
Ishti

Reputation: 7

If Else text does not appear to be part of the formula

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

Answers (1)

CoSpringsGuy
CoSpringsGuy

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

Related Questions