Millisecond Forums

"The element 'probe' returned by branch expression 'probe' is the wrong type."

https://forums.millisecond.com/Topic35994.aspx

By parsi - 2/19/2024

Can someone tell me what I'm doing wrong?

Inside a trial element, I have / branch = [if (true) survey.probe].
When I run it, I get the error message 
The element 'probe' returned by branch expression 'probe' is the wrong type.
By Dave - 2/19/2024

parsi - 2/19/2024
Can someone tell me what I'm doing wrong?

Inside a trial element, I have / branch = [if (true) survey.probe].
When I run it, I get the error message 
The element 'probe' returned by branch expression 'probe' is the wrong type.

A <survey> is a special type of <block>. (Similarly, a <surveypage> is a special type of <trial>.)

You cannot /branch from a <trial> to a <block>, nor can you /branch from a type of <block> to a type of <trial>.

A /branch must be at the same level, that is:
- A <trial> can /branch to another <trial>.
- A <block> can /branch to another <block>.