Math & Text multi

$multi[]

Multiplies two values (a * b).

Syntax
$multi[a;b]

$multi[]

The function $multi[] multiplies two values: a * b.

Important Note: This function is purely mathematical. For conditional branching, use $if[], $elseif[], and $else[].

Syntax

$multi[a;b]

Parameters

Parameter Type Required Description
a number Yes The first factor.
b number Yes The second factor.

Behavior

  • Returns the product a * b.
  • Supports decimal numbers.
  • If either argument is 0, the result is 0.

Examples

Simple multiplication:

$multi[6;7]
→ 42

With decimals:

$multi[2.5;4]
→ 10

Calculating total price:

$multi[$getVar[unitPrice];$getVar[quantity]]

By zero:

$multi[100;0]
→ 0

Notes

  • Only supports two arguments. To multiply more values, nest them: $multi[$multi[a;b];c] or use $calculate[a * b * c].
  • The separator is the semicolon ;.