Skip to content

Latest commit

 

History

History
59 lines (37 loc) · 838 Bytes

const.md

File metadata and controls

59 lines (37 loc) · 838 Bytes

Constants

  • In computer programming, a constant is a value that should not be altered by the program during normal execution, i.e., the value is constant.

  • You also may make constants in PawnScript:

const[int]MY_FIRST_CONST=1

You also may create boolean and string constants:

const[bool]MY_FIRST_CONST=true

const[str]MY_FIRST_CONST="string"

Data types

int

  • Integers are whole numbers.
const[int]integer=27

bool

  • Booleans are variables that can either be true or false.
const[bool]boolean=false

str

  • Strings are words or sequences of characters.
const[str]string="Some text"

double

  • Doubles are numbers with decimal points.
const[double]decimal=45.3

char

  • Single characters.
const[char]character='z'