Plain integer counters

Keep tabs on something such as Heart Rate. Previously in OpenLabyrinth v2, Counters could only have integer values. We now have more flexibility but this node is about simple integer counters and what they can be used for.

Note that the iPulse counter below has just jumped to 72

We are also using the iNode counter to keep track of which node we are currently on. This number is arbitrarily set by the author in the Counter Grid and does not directly relate to the NodeID (unless you do it manually). Using this approach gives you some additional flexibility when coding your Counter Rules.

You can also continue to increment a Counter each time you hit the Node. See how iCount increases by 10 each time you come here.

At present, authors should be aware that there is not a simple way within a standard web browser to prevent a user from repeatedly hitting the same node to artificially inflate such a counter score. However, learners should also be aware that OLab3 logs every time they do this and so such cheating will be revealed.

Counters and Rules - Main Menu111
Add a decimal
  • iFlag ()
  • iFloat ()
  • iText ()
  • iNode ()
  • iCount ()
  • iPulse ()

Map: Counting on You!!_4 (2435)
Node: 49971
Score:

reset

OpenLabyrinth
OpenLabyrinth is an open source educational pathway system

Review your pathway

  • Kazuistika zo zdravotnej dokumentácie
  • References
  • Using StrCounters for logic
  • Plain integer counters

Reminder

empty_reminder_msg

FINISH

Time is up

Debbuger window

iFlag =

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

Previous_value:

iFloat =

Floating point value

Previous_value:

iText =

String values in a counter

Previous_value:

iNode =

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

Previous_value:

iCount =

Integer counter.

Previous_value:

iPulse =

Integer for heart rate

Previous_value: