case statement


Also found in: Dictionary, Thesaurus, Medical, Legal, Wikipedia.

case statement

case statement

A variation of the if-then-else programming statement that is used when several ifs are required in a row. The following C example tests the variable KEY1 and performs functions based on the results. For an example of how the case statement was used in an actual program, see event loop.

switch (key1)   {case '+':  add();  break;case '-':  subtract();  break;case '*':  multiply();  break;case '/':  divide();  break;}
References in periodicals archive ?
For other people it returns the string "Unknown celeb", and for any first name beginning with q it terminates, as you can see in the case statement.
The case statement is likely to be out of date," he said.
The fund development staff member writes a clear case statement for wetland preservation.
That's part of your case statement for getting money from [all] potential donors.
05 COVENTRY 2-Y-0 STAKES (GROUP 2) CH4: Cappella Sansevero ( C T Keane), Case Statement (O Murphy), War Envoy ( J P O'Brien).
By that date there must be a defence case statement signed by you.
The court heard that an original defence case statement for Elisabetta Grillo in August did not include allegations of Ms Lawson's drug use because she did not want them raised in a court of law out of a "remnant of sympathy'' for her former boss.
Application is made by a one-page case statement about the non-profit, the work they do in the community and why they would like to honor their volunteers.
She pointed out in Davies' defence case statement, a document filed with the court before the trial began, he had denied being anywhere near the Cyt that night.
Brian Cummings QC, prosecuting, challenged Heaps over the fact he and his barrister had provided a defence case statement on October 14 denying ever stealing the phone or sending the obscene messages.
This well-thought-out plan also presented a list of recent accomplishments and a one-page general case statement for honors.
The case statement articulates convincing arguments for those who should support the fund-raising effort, and it educates library leadership so that they are better able to effectively verbalize the case.