Compute a number dimension

Learn here how to compute numbers on your cards, using usual arithmetic with number dimensions and dimensions with a number associated

Compute a number dimension
Learn here how to compute numbers on your cards, using usual arithmetic with number dimensions and dimensions with a number associated
  1. Where are raw numbers coming from?
  2. The expression language
  3. Going futher

Where are raw numbers coming from?

There are two sources of raw numbers to be used in larger expressions:

  1. Track any number dimensions provide a direct number encoded on cards themselves

  2. Dimensions with numbers attached to values. First you need to enable the option on the dimension itself:

    Then you can associate numbers to values:

The expression language

On a Compute a Number dimension, a small expression language can be used to compute any number you'd like. For instance,

_.budget * _.progress.semantics

In those expressions:

  • _ denotes the current card, on which the computed value applies
  • _.xxx denotes the card value along the dimension whose name is xxx (camelCase)
  • _.xxx.semantics denotes the semantics value, only for dimensions with numbers associated to values (second case of the earlier section)

Going futher

  • Klaro Cards currently uses the Livescript language internally, if you need to go beyond simple arithmetics.
  • In the future, we will migrate to Elo which is simpler, cleaner and more powerful. No worry, we'll migrate all formula for you.
Go back

Article status changed.

Article status changed.

Article status changed.