Console Evaluator

From HoNWiki

Jump to: navigation, search

Clipped from Savage2 Mod Wiki

The Console Evaluator is a special syntax that indicates that the Console parser needs to pre-evaluate arguments that it has been given before parsing them.

The syntax commonly requires bracketing the text to be evaluated with # symbols.
If you want to evaluate something again that is already within the evaluation brackets you have to use |# at the start and end.
If you want to evaluate a third step then you will need to store the value in a variable first.

[edit] Example

Set _number 5.5
Echo #Ceil(|#_number|#)#

The Console parser will treat this example as follows:
It will evaluate the text within the |# brackets to the value within the variable _number which is: 5.5
It will then evaluate the the text within the # brackets parsing the Ceil function and returning the value 6.
It will then print '6' (Without Quotes) to the Console.

Personal tools
Google AdSense