ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


functions:cmp

Table of Contents

cmp

Description

Compares two numbers and returns the result:

  • 1 – a is greater than b
  • 0 – a is equal to b
  • -1 – a is less than b

Examples

cmp(1, 2) -> -1
cmp(1, 1) -> 0
cmp(2, 1) -> 1
functions/cmp.txt · Last modified: 2017/03/15 10:35 by korshun