Addition

Addition in most game programming languages is denoted by the + (plus) operator.

Examples

Adding Together Two Numbers

This example adds together two numbers and displays them using a basic text output function.

Print 10 + 15
Sync
WaitKey

Adding a Number to a Variable

This example adds a number to a variable and displays the value of the variable.

; create a variable and store the number 10 in it
aNumber = 10

; add the number to the variable
aNumber = aNumber + 15

Print aNumber
Sync
WaitKey

Related Pages

Categories: Math
page tags: a addition math
page_revision: 6, last_edited: 1237725890|%e %b %Y, %H:%M %Z (%O ago)