case statement


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

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 ?
In its case statement, the BFSA said that Pran used false and misleading information in its advertisement.
Hong sent the school's case statement around as a PDF and made sure that she always had it available to prospective donors.
"The thing that really shames you is that for the last eight or nine months you hid behind the lies in your defence case statement, and you have continued to lie about your involvement until today."
* A two-page case statement with history, mission, and programs (we add or subtract from this case statement depending on the grant and its requirements); note that more and more grants and foundations use online applications, so you can cut and paste according to their word count restrictions.
To apply - email a one-page case statement about the non-profit organization along with who should be honored (i.e.
Collateral and other materials included a case statement, timeline of the 5-year campaign that appeared in Partners Magazine, campaign brochures detailing projects to be funded, invitations, videos and website.
In-form Lyons has double prospects elsewhere, with ICE ECHO in the opening two-year-old median auction maiden and UNREQUITED in the Woods Financial Services Maiden Ice Echo, a grey Verglas colt, made the running before being outpaced by Case Statement at Limerick on his second start.
e two defendants were both remanded in custody and Judge Marson told them they should prepare a defence case statement by the next hearing.
Moments earlier, Mr Cross read from a defence case statement in which Mr Al-Khatib accepted responsibility for his wife's death, but insisted it was not his intention.
Mr Hehir said in a defence case statement, Muqtar had denied intending to kill or seriously injure the victim.
Henry Riding, prosecuting, told the jury the new defence case statement from Mrs Ahmed alleges that she came downstairs to discover her husband attacking Shafilea at around 9.30pm.
#!/bin/bash logfile="/tmp/log.log" firstname="initialization" lastname="initialization" /bin/echo "LOG: $(/bin/date)" > $logfile /bin/echo >> $logfile while test 1; do ###Forever, see the break in the case statement /bin/echo >> $logfile /bin/echo "Begin Cycle: $(/bin/date) >> $logfile /bin/echo /bin/echo "Please type Linux celebs name below:" | /usr/bin/tee -a $logfile read firstname ##### NEXT STATEMENT REMOVES EXTRA CTRL+M PUT IN BY TELNET ##### ##### PROGRAMMER: MAKE SURE THE CHAR IS CTRL+M, NOT A CARAT AND AN M!