Boolean values: Difference between revisions
Content deleted Content added
mv jq |
|||
Line 1,249: | Line 1,249: | ||
=={{header|Swift}}== |
=={{header|Swift}}== |
||
Swift defines a built-in data type <code>Bool</code>, which has two values, represented by the keywords <code>true</code> and <code>false</code>. There is no conversion between booleans and other data types. Conditionals require a type that conforms to the <code> |
Swift defines a built-in data type <code>Bool</code>, which has two values, represented by the keywords <code>true</code> and <code>false</code>. There is no conversion between booleans and other data types. Conditionals require a type that conforms to the <code>BooleanType</code> protocol, which provides a conversion to <code>Bool</code> for that type; types that conform include <code>Bool</code> and some other types. |
||
=={{header|Tcl}}== |
=={{header|Tcl}}== |