REBOL Document

+ - Function Summary


Summary:

Returns the result of adding two values.

Usage:

+ value1 value2

Arguments:

value1 - The value1 argument. (must be: number pair char money date time tuple)

value2 - The value2 argument. (must be: number pair char money date time tuple)

Description:

When adding values of different datatypes, the values must be compatible.


    print 123 + 1
    124


    print 12:00 + 11:00
    23:00


    print 31-Dec-1999 + 1
    1-Jan-2000


    print 1.2.3.4 + 4.3.2.1
    5.5.5.5

Related:

- - Returns the second value subtracted from the first.
add - Returns the result of adding two values.
subtract - Returns the second value subtracted from the first.


<Back | Index | Next>

Copyright 2004 REBOL Technologies