goto

  • Output field: Continues the process with the cell that matches the given expression.
<goto>expression</goto>

Parameters

expression

The text to process. It can be a text string or any invalid BrainXML expression.

Examples

Example 1. Continue with given text

  • 1
    • Yes
    • Good!
  • 2
    • Yes I am
    • <goto>Yes</goto>
    • Yes, I am.
    • Good!

Example 2. Continue with an s element

  • 1
    • I am * years old
    • Thanks for telling me your age.
  • 2
    • Do you know *
    • <goto><s/></goto>
    • Do you know I am 7 years old?
    • Thanks for telling me your age.

Example 3. Split process

  • 1
    • I am young and clever
    • <goto>I am young</goto> <goto>I am clever</goto>
  • 2
    • I am young
    • Being young is really good.
  • 3
    • I am clever
    • What is your IQ?
    • I am young and clever.
    • Being young is really good. What is your IQ?

Notes

  • Multiple cells with goto elements might result in infinite loop. For example, A goes to B and B goes to A. The loop can be fixed by modifying one of the cells.