{"nodes":{"m1vh6i6aznzpzsjg0j40e3eeujty1dax":{"type":"start","x":-20.174768068033565,"y":-77.54683390588829,"properties":{"title":"Count up and down","excerpt":"This example demonstrates how easily you can count events and occurrences in your flow.","slug":"","post":"","author":"GraVersal","license":"CC BY 4.0","channel":"chat","category":"Examples","private":false}},"82obfu9lukp7odlt3sptouth3dutqs8p":{"type":"message","x":-616.327,"y":372.33898779296874,"properties":{"text":"You can easily **count up or down** numerical values. Use the methods on the Number node, which you can call with buttons, for example. Use the **Step value** in the Number node to adjust the counter's steps.","repeatOnReentry":true,"repeatOnChance":true}},"jsyxru4lbnfr6wojdupa42ncjx9x4396":{"type":"button","x":-276.0910244140625,"y":487.6009633789063,"properties":{"label":"Count up"}},"is05yn6vtkewlvh4xose5byb4hg5zzeh":{"type":"board","x":396.0749755859375,"y":821.5100244140625,"properties":{"text":"Count: {{count}}"}},"z6bnyq51lm57uzeho8i9z8sqx04wxfyf":{"type":"number","x":238.21435439601848,"y":522.3503755767605,"properties":{"step":"1","recalculateOnReentry":true,"recalculateOnChance":true,"expression":"1"}},"wu1sd5es5enz5wwjfg2be59pyzww4he4":{"type":"button","x":-291.318048828125,"y":620.189,"properties":{"label":"Count down"}},"dzea9ys3m1aq978w0ynhvgce6www1d1m":{"type":"button","x":-256.28999999999996,"y":346.5479755859375,"properties":{"label":"Reset"}}},"edges":{"dqwkx62opzgtwshvon53dyx3y88596hu":{"type":"may","from":"m1vh6i6aznzpzsjg0j40e3eeujty1dax","to":"82obfu9lukp7odlt3sptouth3dutqs8p","properties":{"priority":6}},"jiq5gifa20ohcolb3xio7rd2kwdq5rco":{"type":"may","from":"82obfu9lukp7odlt3sptouth3dutqs8p","to":"jsyxru4lbnfr6wojdupa42ncjx9x4396","properties":{"priority":6,"condition":"arrived"}},"n6stm35enqb9k1tiqy1u2tn49ao02fs7":{"type":"may","from":"m1vh6i6aznzpzsjg0j40e3eeujty1dax","to":"z6bnyq51lm57uzeho8i9z8sqx04wxfyf","properties":{"priority":4}},"8p8xwhwxdjk42hvc8h78fcgzeel2spjh":{"type":"may","from":"z6bnyq51lm57uzeho8i9z8sqx04wxfyf","to":"is05yn6vtkewlvh4xose5byb4hg5zzeh","properties":{"priority":4,"push":"value","as":"count"}},"lh4xchx1pscqhuem3cx1ulbk1nnu3yaf":{"type":"call","from":"jsyxru4lbnfr6wojdupa42ncjx9x4396","to":"z6bnyq51lm57uzeho8i9z8sqx04wxfyf","properties":{"priority":4,"condition":"clicked","method":"up"}},"9e6czkd6uqz7o33sahrsc3ic4y8xc7l0":{"type":"may","from":"82obfu9lukp7odlt3sptouth3dutqs8p","to":"wu1sd5es5enz5wwjfg2be59pyzww4he4","properties":{"priority":4,"condition":"arrived"}},"3zzdhdrk8v7i0fxfqmscnlntaw1u3x13":{"type":"call","from":"wu1sd5es5enz5wwjfg2be59pyzww4he4","to":"z6bnyq51lm57uzeho8i9z8sqx04wxfyf","properties":{"priority":4,"condition":"clicked","method":"down"}},"ot2okupekweeegm1mtadvd1mgcemjvbt":{"type":"may","from":"82obfu9lukp7odlt3sptouth3dutqs8p","to":"dzea9ys3m1aq978w0ynhvgce6www1d1m","properties":{"priority":7,"condition":"arrived"}},"qnv25bhysfwryetos4os7indavbl857e":{"type":"call","from":"dzea9ys3m1aq978w0ynhvgce6www1d1m","to":"z6bnyq51lm57uzeho8i9z8sqx04wxfyf","properties":{"priority":4,"condition":"clicked","method":"calculate"}}}}