|
|
Line 57: |
Line 57: |
| Those relational operators cannot be applied to all data types and in some cases, two values of different types cannot be compared to each other. | | Those relational operators cannot be applied to all data types and in some cases, two values of different types cannot be compared to each other. |
| | | |
− | <br> | + | <br> |
− | | |
− | {| width="1189" cellspacing="0" cellpadding="2" border="1" style="border-collapse:collapse; border:1px solid #010101" class="tableintopic"
| |
− | |- valign="top" align="left"
| |
− | | width="149" bgcolor="#C0C0C0" style="border:1px solid #010101;" |
| |
− |
| |
− | | |
− | | width="149" bgcolor="#C0C0C0" style="border:1px solid #010101;" |
| |
− | '''array'''
| |
− | | |
− | | width="149" bgcolor="#C0C0C0" style="border:1px solid #010101;" |
| |
− | '''bool'''
| |
− | | |
− | | width="149" bgcolor="#C0C0C0" style="border:1px solid #010101;" |
| |
− | '''number'''
| |
− | | |
− | | width="149" bgcolor="#C0C0C0" style="border:1px solid #010101;" |
| |
− | '''question'''
| |
− | | |
− | | width="149" bgcolor="#C0C0C0" style="border:1px solid #010101;" |
| |
− | '''range'''
| |
− | | |
− | | width="149" bgcolor="#C0C0C0" style="border:1px solid #010101;" |
| |
− | '''string'''
| |
− | | |
− | | width="149" bgcolor="#C0C0C0" style="border:1px solid #010101;" |
| |
− | '''datetime'''
| |
− | | |
− | |- valign="top" align="left"
| |
− | | width="149" bgcolor="#C0C0C0" style="border:1px solid #010101;" |
| |
− | '''array'''
| |
− | | |
− | | width="149" style="border:1px solid #010101;" |
| |
− |
| |
− | | |
− | | width="149" style="border:1px solid #010101;" |
| |
− |
| |
− | | |
− | | width="149" style="border:1px solid #010101;" |
| |
− |
| |
− | | |
− | | width="149" style="border:1px solid #010101;" |
| |
− |
| |
− | | |
− | | width="149" style="border:1px solid #010101;" |
| |
− | = =, ! =
| |
− | | |
− | | width="149" style="border:1px solid #010101;" |
| |
− |
| |
− | | |
− | | width="149" style="border:1px solid #010101;" |
| |
− |
| |
− | | |
− | |- valign="top" align="left"
| |
− | | width="149" bgcolor="#C0C0C0" style="border:1px solid #010101;" |
| |
− | '''bool'''
| |
− | | |
− | | width="149" style="border:1px solid #010101;" |
| |
− |
| |
− | | |
− | | width="149" style="border:1px solid #010101;" |
| |
− | = =, ! =
| |
− | | |
− | | width="149" style="border:1px solid #010101;" |
| |
− | = =, ! =
| |
− | | |
− | | width="149" style="border:1px solid #010101;" |
| |
− |
| |
− | | |
− | | width="149" style="border:1px solid #010101;" |
| |
− |
| |
− | | |
− | | width="149" style="border:1px solid #010101;" |
| |
− | = =, ! =
| |
− | | |
− | | width="149" style="border:1px solid #010101;" |
| |
− |
| |
− | | |
− | |- valign="top" align="left"
| |
− | | width="149" bgcolor="#C0C0C0" style="border:1px solid #010101;" |
| |
− | '''number'''
| |
− | | |
− | | width="149" style="border:1px solid #010101;" |
| |
− |
| |
− | | |
− | | width="149" style="border:1px solid #010101;" |
| |
− | = =, ! =
| |
− | | |
− | | width="149" style="border:1px solid #010101;" |
| |
− | = =, !=, >, <, <=, > =
| |
− | | |
− | | width="149" style="border:1px solid #010101;" |
| |
− |
| |
− | | |
− | | width="149" style="border:1px solid #010101;" |
| |
− | = =, ! =
| |
− | | |
− | | width="149" style="border:1px solid #010101;" |
| |
− |
| |
− | | |
− | | width="149" style="border:1px solid #010101;" |
| |
− |
| |
− | | |
− | |- valign="top" align="left"
| |
− | | width="149" bgcolor="#C0C0C0" style="border:1px solid #010101;" |
| |
− | '''question'''
| |
− | | |
− | | width="149" style="border:1px solid #010101;" |
| |
− |
| |
− | | |
− | | width="149" style="border:1px solid #010101;" |
| |
− |
| |
− | | |
− | | width="149" style="border:1px solid #010101;" |
| |
− |
| |
− | | |
− | | width="149" style="border:1px solid #010101;" |
| |
− |
| |
− | | |
− | | width="149" style="border:1px solid #010101;" |
| |
− |
| |
− | | |
− | | width="149" style="border:1px solid #010101;" |
| |
− |
| |
− | | |
− | | width="149" style="border:1px solid #010101;" |
| |
− |
| |
− | | |
− | |- valign="top" align="left"
| |
− | | width="149" bgcolor="#C0C0C0" style="border:1px solid #010101;" |
| |
− | '''range'''
| |
− | | |
− | | width="149" style="border:1px solid #010101;" |
| |
− | = =, ! =
| |
− | | |
− | | width="149" style="border:1px solid #010101;" |
| |
− |
| |
− | | |
− | | width="149" style="border:1px solid #010101;" |
| |
− | = =, ! =
| |
− | | |
− | | width="149" style="border:1px solid #010101;" |
| |
− |
| |
− | | |
− | | width="149" style="border:1px solid #010101;" |
| |
− |
| |
− | | |
− | | width="149" style="border:1px solid #010101;" |
| |
− |
| |
− | | |
− | | width="149" style="border:1px solid #010101;" |
| |
− |
| |
− | | |
− | |- valign="top" align="left"
| |
− | | width="149" bgcolor="#C0C0C0" style="border:1px solid #010101;" |
| |
− | '''string'''
| |
− | | |
− | | width="149" style="border:1px solid #010101;" |
| |
− |
| |
− | | |
− | | width="149" style="border:1px solid #010101;" |
| |
− | = =, ! =
| |
− | | |
− | | width="149" style="border:1px solid #010101;" |
| |
− | = =, ! =
| |
− | | |
− | | width="149" style="border:1px solid #010101;" |
| |
− |
| |
− | | |
− | | width="149" style="border:1px solid #010101;" |
| |
− |
| |
− | | |
− | | width="149" style="border:1px solid #010101;" |
| |
− | = =, ! =
| |
− | | |
− | | width="149" style="border:1px solid #010101;" |
| |
− |
| |
− | | |
− | |- valign="top" align="left"
| |
− | | width="149" bgcolor="#C0C0C0" style="border:1px solid #010101;" |
| |
− | '''datetime'''
| |
− | | |
− | | width="149" style="border:1px solid #010101;" |
| |
− |
| |
− | | |
− | | width="149" style="border:1px solid #010101;" |
| |
− |
| |
− | | |
− | | width="149" style="border:1px solid #010101;" |
| |
− |
| |
− | | |
− | | width="149" style="border:1px solid #010101;" |
| |
− |
| |
− | | |
− | | width="149" style="border:1px solid #010101;" |
| |
− |
| |
− | | |
− | | width="149" style="border:1px solid #010101;" |
| |
− |
| |
− | | |
− | | width="149" style="border:1px solid #010101;" |
| |
− | = =, !=, >, <, <=, > =
| |
− | | |
− | |}
| |
− | | |
| | | |
| + | <br> |
| | | |
| The logical operators are shown next: | | The logical operators are shown next: |
Line 289: |
Line 86: |
| | | |
| |- valign="top" align="left" | | |- valign="top" align="left" |
− | | width="594" style="border:1px solid #010101;" | <br> | + | | width="594" style="border:1px solid #010101;" | <br> |
| ! | | ! |
| Logical negation | | Logical negation |
Line 296: |
Line 93: |
| |} | | |} |
| | | |
− | | + | <br> |
| | | |
| The outcome of the relational and logical operators is a value of type bool. | | The outcome of the relational and logical operators is a value of type bool. |
| | | |
| [[Category:Operators]] | | [[Category:Operators]] |