Run Function (Expression Section) (Expression) — SkCheese

Addon: SkCheese · Category: Expression · Since: 1.7

Syntax

[the] function <.+> with [the] arg[ument][s]

Description

Runs a function with the specified arguments.

Examples

local function multiply(x: number, y: number) returns number:
	return {_x} * {_y}

set {_x} to function multiply with arguments:
	x set to 2
	y set to 3

broadcast "%{_x}%" # returns 6

View source