Class ExprWhether

java.lang.Object
ch.njol.skript.lang.util.SimpleExpression<Boolean>
org.skriptlang.skript.common.elements.expressions.ExprWhether
All Implemented Interfaces:
Debuggable, Expression<Boolean>, Loopable<Boolean>, Simplifiable<Expression<? extends Boolean>>, SyntaxElement, RuntimeErrorProducer, SyntaxRuntimeErrorProducer

@Name("Whether") @Description("A shorthand for returning the result of a condition (true or false). This is functionally identical to using 'true if <condition> else false'.\nMany conditions also support being changed through this expression, typically using 'set'.\n") @Example("set {fly} to whether player can fly") @Example("broadcast \"Flying: %whether player is flying%\"") @Example("set whether the player can fly to true") @Example("toggle whether the player can pick up items") @Since({"2.9.0","2.17 (changing)"}) public class ExprWhether extends SimpleExpression<Boolean>