node {
meta {
using Type = Number;
}
void evaluate(Context ctx) {
int sec = getValue<input_SEC_IN>(ctx);
// Use the `Type` type to define a new variable that will be
// later output as the result. We use `fmod` to perform day-wrap
// and be sure the value is in valid range
Number min_out = sec / 60;
Number sec_out = sec % 60;
// Then we can output the new type value like a regular one
emitValue<output_MIN>(ctx, min_out);
emitValue<output_SEC>(ctx, sec_out);
}
}