About: Switch$   Sponge Permalink

An Entity of Type : owl:Thing, within Data Space : 134.155.108.49:8890 associated with source dataset(s)

The switch$ keyword is used to control the flow of a script. The general form of a switch statement is as follows: switch (expression) { case string_value0: statement(s); break; case string_value1; statement(s); break; . . . case string_valueN; statement(s); break; default: statement(s); } Where expression is evaluated and subsequently compared to the following case values. If a case string_value matches the evaluated expression, the statement(s) associated with that case are executed. If no values match and a default statement exists, the statement(s) in the default case will be executed.

AttributesValues
rdfs:label
  • Switch$
rdfs:comment
  • The switch$ keyword is used to control the flow of a script. The general form of a switch statement is as follows: switch (expression) { case string_value0: statement(s); break; case string_value1; statement(s); break; . . . case string_valueN; statement(s); break; default: statement(s); } Where expression is evaluated and subsequently compared to the following case values. If a case string_value matches the evaluated expression, the statement(s) associated with that case are executed. If no values match and a default statement exists, the statement(s) in the default case will be executed.
dcterms:subject
abstract
  • The switch$ keyword is used to control the flow of a script. The general form of a switch statement is as follows: switch (expression) { case string_value0: statement(s); break; case string_value1; statement(s); break; . . . case string_valueN; statement(s); break; default: statement(s); } Where expression is evaluated and subsequently compared to the following case values. If a case string_value matches the evaluated expression, the statement(s) associated with that case are executed. If no values match and a default statement exists, the statement(s) in the default case will be executed. switch$ is used ONLY for expressions that evaluate to a string value. Note: Unlike C/C++, the break statements in switches are superfluous. Torque Script will only execute matching cases and NOT automatically execute all subsequent cases. %tmp = "hi" ; switch$( %tmp ) { case "bye": echo( "bye" ); case "hi": echo ( "hi" ); }
Alternative Linked Data Views: ODE     Raw Data in: CXML | CSV | RDF ( N-Triples N3/Turtle JSON XML ) | OData ( Atom JSON ) | Microdata ( JSON HTML) | JSON-LD    About   
This material is Open Knowledge   W3C Semantic Web Technology [RDF Data] Valid XHTML + RDFa
OpenLink Virtuoso version 07.20.3217, on Linux (x86_64-pc-linux-gnu), Standard Edition
Data on this page belongs to its respective rights holders.
Virtuoso Faceted Browser Copyright © 2009-2012 OpenLink Software