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) {
  final testVal = test.execute(ctx);
  if (testVal.asBool) {
    return execStatements(body, ctx);
  } else {
    return execStatements(alternate, ctx);
  }
}