•  Back 
  •  Main 
  •  Index 
  •  Tree View 
  •  Cross references 
  •  Help 
  •  Show info about hypertext 
  •  View a new file 
Topic       : The GFA-Basic Compendium
Author      : GFA Systemtechnik GmbH
Version     : GFABasic.HYP v2.98 (12/31/2023)
Subject     : Documentation/Programming
Nodes       : 899
Index Size  : 28056
HCP-Version : 3
Compiled on : Atari
@charset    : atarist
@lang       : 
@default    : Document not found
@help       : Help
@options    : +g -i -s +z
@width      : 75
@hostname   : STRNGSRV
@hostname   : CAB     
@hostname   : HIGHWIRE
@hostname   : THING   
View Ref-FileDEC i
INC i

i: avar

The instruction DEC decrements the value of the specified variable, in other
words it subtracts one (1) from it's value.

The instruction INC increments the value of the specified variable, in other
words it adds one (1) to it's value.

These instruction can work with floating-point variables, but are substantially
faster with integers.

Examples:

    x%=4
    y%=7
    DEC x%
    INC y%
    PRINT x%,y%

--> The numbers 3 and 8 appear.

    a|=255
    INC a|
    INC a|
    PRINT a|

--> Results in '1' being displayed, as there is no overflow check.