About: Ternary operator   Sponge Permalink

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

The ternary operator is a replacement for the if statement. In some languages (e.g. C, awk), its syntax is as follows: return(condition ? expression1 : expression2) The ternary operator returns the value of whichever action it takes. In this way, it differs from the if statement, which does not (in most languages) return a value. The example above is similar to: if condition return(expression1) else return(expression2)

AttributesValues
rdfs:label
  • Ternary operator
rdfs:comment
  • The ternary operator is a replacement for the if statement. In some languages (e.g. C, awk), its syntax is as follows: return(condition ? expression1 : expression2) The ternary operator returns the value of whichever action it takes. In this way, it differs from the if statement, which does not (in most languages) return a value. The example above is similar to: if condition return(expression1) else return(expression2)
dcterms:subject
dbkwik:code/proper...iPageUsesTemplate
abstract
  • The ternary operator is a replacement for the if statement. In some languages (e.g. C, awk), its syntax is as follows: return(condition ? expression1 : expression2) The ternary operator returns the value of whichever action it takes. In this way, it differs from the if statement, which does not (in most languages) return a value. The example above is similar to: if condition return(expression1) else return(expression2)
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