Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What is the use of evaluate statement give example?

0
Posted

What is the use of evaluate statement give example?

0

When we have to resort to different actions depending on the value of a variable: we can use Evaluate-endevaluate. It is just like Switch case in C language. Eg: move ’12’ to Month. evaluate Month when ’12’ display ‘you are right’ when ’01’ display ‘it is not new year dear!’ when other display ‘try again Boy!’ end-evaluate. So it will display three different strings depending on what is moved into the variable Month.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123