This module aims to enhance roll formula capabilities in Foundry VTT. It provides a set of new functions and operators that can be used in roll formulas to make them more powerful and flexible. Users familiar with coding languages will find many familiar constructs, such as ternaries and logic operations.
Exponential term of the form aᵇ
.
Remainder of the division of a
by b
.
Returns b
if both a
and b
are truthy.
Returns a
, if a
is truthy, otherwise returns b
.
Inverts a
into a negated boolean value. Returns false
if a
is truthy, otherwise returns true
.
Returns b
if a
is truthy, otherwise returns c
.
Returns b
if a
is null
or undefined
, otherwise returns a
.
Returns true
if a
is equal to b
, otherwise returns false
.
Returns true
if a
is not equal to b
, otherwise returns false
.
Returns true
if a
is greater than b
, otherwise returns false
.
Returns true
if a
is greater than or equal to b
, otherwise returns false
.
Returns true
if a
is less than b
, otherwise returns false
.
Returns true
if a
is less than or equal to b
, otherwise returns false
.
Bitwise AND operation between a
and b
.
Bitwise OR operation between a
and b
.
Bitwise XOR operation between a
and b
.
Bitwise NOT operation on a
.
Bitwise left shift operation on a
by b
bits.
Bitwise right shift operation on a
by b
bits.
Bitwise zero-fill right shift operation on a
by b
bits.
Returns the value at position index
, or fallback
if index
is out of bounds.