Hi guys
I want to add hard predicate outputs check to my predicate
What will __gtf::(index, GTF_OUTPUT_TYPE) return if there is no output at this index?
Now that looping is enabled in predicates, you can first check the number of outputs using GTF_SCRIPT_OUTPUTS_COUNT
and then iterate over the correct number of outputs. According to the spec, the predicate will fail if the index is out of bounds:
- The value of
$rB
results in an out of bounds access for variable-length fields- The input or output type does not match (
OutputChange
andOutputVariable
count asOutputCoin
)
Got it
Thanks a lot <3