Counters and Rules - Main Menu111

We need You!

This small case is for testing and explaining how to use Counters and the Counter Rules in a virtual patient. (At this point, the case is more aligned with testing and development than with being a good illustration of what can be done - bear with us, we'll improve this soon).

It has no clinical relevance.

Conditional logic is a new feature of OpenLabyrinth v3.

Previously, you could make conditional jumps to certain nodes, based on the value of a Counter. The new approach we are using provides more sophistication, allowing the comparison of multiple variables/counters, and for multiple actions.

While an improvement over OLab2, the logic rules here are still pretty crude. Give us some examples of how things could be improved and we will take this further.

Plain integer counters
Floating point counters
Flags
Hide and seek
Modifying display of Counters
Use with Questions
Chats and Counters
Using Rules
Fool me once...
Text Counters
Using StrCounters for logic
Text matching to node destinations
Working with foreign Counters
  • iFlag (0)
  • iFloat (0)
  • iText (0)
  • iNode (1)
  • iCount (0)
  • iPulse (65)

Map: Counting on You!! (44)
Node: 1743
Score:

reset

OpenLabyrinth
OpenLabyrinth is an open source educational pathway system

Review your pathway

  • Counters and Rules - Main Menu111

Reminder

empty_reminder_msg

FINISH

Time is up

Debbuger window

iFlag = 0

Simple on/off flag. 0 = false 1 = true Usually hidden

Previous_value: 0

iFloat = 0

Floating point value

Previous_value: 0

iText = 0

String values in a counter

Previous_value: 0

iNode = 1

Useful for keeping track (in a crude manner) which node the learner is on currently.

Previous_value: 0
Counter: 0 = 1

iCount = 0

Integer counter.

Previous_value: 0

iPulse = 65

Integer for heart rate

Previous_value: 0
Counter: 0 = 65