execute method

  1. @override
JinjaValue execute(
  1. Context ctx
)
override

Executes the statement within the given ctx and returns the result as a JinjaValue.

Implementation

@override
JinjaValue execute(Context ctx) {
  if (condition.execute(ctx).asBool) {
    return trueExpr.execute(ctx);
  } else {
    return falseExpr.execute(ctx);
  }
}