a plus b: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 6: | Line 6: | ||
'''Operand types:''' | '''Operand types:''' | ||
'''a | '''a:''' [[Number]] or [[String]] or [[Array]] | ||
'''b:''' [[Number]] or [[String]] or [[Array]] | |||
'''Type of returned value:''' | '''Type of returned value:''' | ||
Line 19: | Line 21: | ||
'''Examples:''' | '''Examples:''' | ||
Number<br>_result = 1 '''+''' 2 ........ _result is 3 | [[Number]]<br>_result = 1 '''+''' 2 ........ _result is 3 | ||
String<br>_result = "He" '''+''' "llo" ........ _result is "Hello" | [[String]]<br>_result = "He" '''+''' "llo" ........ _result is "Hello" | ||
Array<br>_result = [1] '''+''' [2] ........ _result is [1,2] | [[Array]]<br>_result = [1] '''+''' [2] ........ _result is [1,2] |
Revision as of 14:09, 19 April 2006
back to COMREF
a + b
Operand types:
Type of returned value:
Either Number or String or Array
Description:
For numbers, a added to b. For strings, all the characters in a followed by all the charaters in b. For arrays, all the elements of a followed by all the elements of b
See also. Array
Examples:
Number
_result = 1 + 2 ........ _result is 3
String
_result = "He" + "llo" ........ _result is "Hello"
Array
_result = [1] + [2] ........ _result is [1,2]