oTree Forum >

Maths in oTree Studio

#1 by martin1896

I am using oTree Studio to implement my experiment as I do not have a lot of coding experience.
Now I am stuck at the point where I want to do some simple maths operations with my defined variables.

At the end of the experiment, I have 3 different integer variables from player inputs during the experiment. I want to add these 3 values together and display them to the player. 
Where in oTree Studio am I able to do that? I tried writing my own function but can't really make it work - I do not even know how to call a function on a page.

Couldn't find any documentation specifically for Studio-users, could someone help me out?

Thanks in advance!

#2 by Chris_oTree

See bmi_calculator in otree-snippets: https://www.otreehub.com/projects/otree-snippets/

By the way, the documentation is written equally for oTree Studio and the code-based version. The features are the same.

Write a reply

Set forum username