Comparison Operations: Difference between revisions

From BR Wiki
Jump to navigation Jump to search
(edit)
(edit)
Line 6: Line 6:
|-valign="top"
|-valign="top"
|width="10%"|'''='''||may be used for assignment or comparing 2 values like the '''==''' operator
|width="10%"|'''='''||may be used for assignment or comparing 2 values like the '''==''' operator
|-valign="top"
|width="10%"|''':='''||forced assignment
|-valign="top"
|-valign="top"
|width="10%"|'''<>'''||not equal
|width="10%"|'''<>'''||not equal
|-valign="top"
|width="10%"|'''&'''||concatenation of strings
|-valign="top"
|width="10%"|'''*'''||multiplication
|-valign="top"
|width="10%"|'''*='''||multiplication of the left operand by the right operand followed by assignment of the result to the left operand
|-valign="top"
|width="10%"|'''+'''||addition
|-valign="top"
|width="10%"|'''+='''||addition of the left operand to the right operand followed by assignment of the result to the left operand
|-valign="top"
|width="10%"|'''-'''||subtraction
|-valign="top"
|width="10%"|'''-='''||subtraction of the right operand from the left operand followed by assignment of the result to the left operand
|-valign="top"
|width="10%"|'''/'''||division
|-valign="top"
|width="10%"|'''/='''||division of the left operand by the right operand followed by assignment of the result to the left operand
|-valign="top"
|-valign="top"
|width="10%"|'''<'''||less than
|width="10%"|'''<'''||less than
Line 38: Line 18:
|-valign="top"
|-valign="top"
|width="10%"|'''>='''||more than or equal to
|width="10%"|'''>='''||more than or equal to
|-valign="top"
|width="10%"|'''and'''||logical AND
|-valign="top"
|width="10%"|'''&&'''||logical AND. The use of AND is preferred for readability.
|-valign="top"
|width="10%"|'''or'''||logical OR
|-valign="top"
|width="10%"|'''<nowiki>||</nowiki>'''||logical OR. The use of OR is preferred for readability.
|}
|}
<noinclude>
<noinclude>

Revision as of 12:34, 11 January 2012

Below is the list of binary operators:

Operator Effect
= may be used for assignment or comparing 2 values like the == operator
<> not equal
< less than
<= less than or equal to
== equality
> more than
>= more than or equal to