If_else error?

Hi Chris,

This code:

        <action type="if_else">
          <action type="if" condition="doAdvanceOnCounter">
            <action type="start_timer" timer="stimDurationTimer" duration="0.01" duration_units="ms"/>  <!-- 10 us if not using counter -->
          </action>
          <action type="else"> <!-- not using counter -->
            <action type="start_timer" timer="stimDurationTimer" duration="tPyCompDuringStimTimeMs" duration_units="ms"/> <!-- keep track of stim offset for state transitions -->
          </action>
        </action>

Produces this error:

00:01:15: ERROR: Failed to create object.

Extended information:

reason: No factory for object type: action/else

location: at line 349

object_type: action/else

parent_scope: JuiceOnHoldProtocol

ref_id: idp140379209230944

parser_context: mw_anonymous_create


Server:

Version 0.8.dev-20170921 (72dd0dc2)

(Line number corresponds.)

Thanks,

Mark

Hi Mark,

Version 0.8.dev-20170921 (72dd0dc2)

You’re using a nightly build from September, but the “else” action wasn’t added until early November. If you want to use it, you’ll need a more recent nightly.

Chris

Ah, thanks. I thought the else action had been around since if_else was added, but this jogs my memory.
have a good weekend,
Mark