control flow

PennController for IBEX Forums Support control flow

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #6966

    Hi,

    I’m struggling to see how to implement a nested condition which must be met for the next routine to execute. Suppose you have two scales (1,2) and (3,4). The subject must choose 1 or 2. If they try to continue without choosing 1 or 2 they’ll get an error, subsequent to which they’ll be return to the choice between 1 or 2. If they choose 1 they should then choose 3 or 4 to continue. If they don’t choose 3 or 4 they’ll get an error, subsequent to which they’ll be return to the choice between 3 or 4. If they choose 2 then subsequently choose 3 or 4 they’ll get an error, subsequent to which they’ll need to deselect their choice of 3 or 4 or switch their choice of 1 to 2 to continue. This seems incredibly simple to me, but I’m not sure how to implement it in PC Ibex. Is there a boiler code for this?

    thanks,
    Symon

    #6969
    Jeremy
    Keymaster

    Hi Symon,

    Is this what you’re describing? https://farm.pcibex.net/r/aDjqIb/

    Jeremy

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.