MinusUnaryOperator

Typeoperator
DictionaryLCB
LibraryLiveCode Builder
Syntax
- <Operand>
Associationscom.livecode.arithmetic
Summary

Unary minus operator.

Parameters
NameTypeDescription
Operand

An expression that evaluates to a number.

Example
variable tVar as Number
put -(5 + 4) into tVar -- tVar contains -9
Values
NameTypeDescription
return

The negated result of evaluating Operand.

Description

Unary minus operator.

Tagsmath