Decr Command

Purpose

decrements a numeric variable

Syntax

Decr x [, y]

x:avar
y:aexp

Description

With the command Decr you decrements the vale of the variable x by 1 or by the given value of y.

Example

OpenW 1

Local a%

a = 10000

Decr a

Print a // Prints 9999

Decr a, 1500

Print a // Prints 8499

See Also

Add, Inc, Incr

{Created by Sjouke Hamstra; Last updated: 28/09/2014 by James Gaite}