Constant: Wrapper

Constant: Wrapper is a Number Spell Piece added by Psi. It is used to allow a Trick Spell Piece to operate on a variable while using a constant as the value to calculate Psi cost (in other words, the maximum the variable can be). Mathematically, it can be expressed as:

$$\text{Magnitude}= x, x<c$$ $$\text{Magnitude}=c,x \geq c$$

where $$x$$ is any variable, and $$c$$ is the assigned constant.

It is unlocked in the lesson "Flow Control."

Parameters

 * Target: Requires a number. When using this Spell Piece this is commonly a variable.
 * Constant: Requires a number constant. It essentially sets the Psi cost of the spell and the maximum of the Target parameter.