Is this nested statement correct?

If(${total_score}<=20, “कमजोर”, if (${total_score}>20 and ${total_score}<40, “ठिकै”, if (${total_score}>40 and ${total_score}<70, “राम्रो”, “धेरै राम्रो”)))

Is that nested if statement correct?

That looks correct, although you can simplify it to:

if(${total_score}<=20, “कमजोर”, if(${total_score}<40, “ठिकै”, if(${total_score}<70, “राम्रो”, “धेरै राम्रो”)))

Note no extraneous spaces after the if; if() is actually a function

1 Like

Thank you let me check once.