Double Redirection with Nested Cond

How Can We Help?

< Back

The True/False Nested version of the bug allows you to achieve Double Redirection and beyond.

Example
Helper(10000),Cond(1, Target,Cond(1, ID, 1), 1)
=== Helper(10000),Target,ID
Parent,Cond(1, Parent,Cond(1, ID, 1), 1)
=== Parent,Parent,ID
Helper,Cond(1, Parent,Cond(1, ID, 1), 1)
=== Helper,Parent,ID == ID

Note that the desired results of the cond is placed inside the TRUE of each branch and the condition of each branch is 1/True
This allows meaningful results in double redirection (We want the trigger to be the returned value)

This will allow you to set the outcome in your own variables,
Var(0) := Helper(10000),Cond(1, Target,Cond(1, ID, 1), 1)

Which can also be done with more involved redirection but that would be messy so experiment with it if you like.

Nested True False is the only way to get value directly into a varset of sysvar(1)-sysfvar(4)
However a temporary variable could hold it and be reused.

Leave a comment

Your email address will not be published. Required fields are marked *