Not

From WarCraft3

Jump to: navigation, search

Template:jass/common.j Template:common.j article series


Takes a boolexpr and returns the inverse of it.

Contents

Parameters

operand

The boolexpr to invert.

Return value

A boolexpr that will always return the opposite of what operand would.

Examples

Simple Not Usage

function True takes nothing returns boolean
    return true
endfunction

function TestFunction takes nothing returns nothing
    local boolexpr test = Not(Condition(function True))
endfunction
The local boolexpr test in TestFunction would always return false.

Personal tools