-
-
Notifications
You must be signed in to change notification settings - Fork 80
Top Level Functions
Richard Wilkes edited this page Jun 25, 2026
·
3 revisions
These are a top-level functions.
| Method | Arguments | Result Type | Result | Availability |
|---|---|---|---|---|
| formatNum | value: number, withCommas: boolean, withSign: boolean | string | Returns the value as a string with commas every third digit from the right if withCommas is true and with a leading + if it is positive and withSign is true. |
GCS v5.39+ |
| iff | condition: boolean, trueValue: any, falseValue: any | any | Returns trueValue if condition is true, otherwise returns falseValue. This exists primarily to support the automatic conversions of the old expression engine into Javascript and is essentially the same as condition ? trueValue : falseValue. |
GCS v5.36+ |
| signedValue | value: number | string | Returns the value as a string with a leading + if it is positive. |
GCS v5.36+ |
Building characters
- Character Sheet Overview
- Library Explorer
- Core Concepts
- Abilities
- Gear & Notes
Advanced Features
Customization
- Settings
- Appearance