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 (test.execute(ctx).asBool) {
    return lhs.execute(ctx);
  }
  return const JinjaUndefined();
}