Division with variables

Has anyone found a way to divide one variable by another? I’ve found a number methods from AI searches, but they don’t seem to work (or at least I can’t get them working).

Thanks, don

Hey Don,

No I’m afraid maths with variables is not possible - but I’m really intrigued as to what you are doing with it! There may be an alternative solution we can offer.

AI will probably give you very little help in terms of how to do things in Evolve as it knows very little about our tool! So that’s why we have this forum - real people who can help!

Helen

Helen:

Thanks for the reply and the direct answer.

This where I’m at:

  • Concept:
    Develop an interactive activity to underscore the cost of bad meetings to the company.
    The user selects the number of attendees and average salaries. The interaction reports
    back the total cost of the meeting based on:

    • number of attendees
    • average salaries
    • 30% overhead to each salary for benefits
    • summed result is divided by 2080
    • final computation: summed cost per hour per employee attending
  • Initial design
    User to input sliders (one for attendees, one for salaries) that the user adjusts . When submitted, the result is returned to variable (totalcost) displayed in a text location.
    This proved to be difficult since Evolve doesn’t do certain arithmetic functions. Also,
    I could not get any Javascript functions to work either (could be my ineptness).

  • Final design
    Used a “fake calculator” functionality.

    • Used a input slider for number of attendees for users to adjust
    • Limited the number of allowable attendees available on the slider to 20 max
    • Made the salary calculations a fixed number ($50K + 15 for benefits, the divided by 2080)
      This became the dollar cost for each employee attending
    • Mad a trigger for 1 through 20. For each trigger:
      • Variable changed: Condition variable (Attendees,) condition, comparison, if equal to (x)
        Action: change total cost variable to a value already computed for that number (x) of
        attendees
    • Display total cost variable in a text location

    Seems to work fine and gets the point across in an interactive way. I hope I have explained this in a way that is not meandering.

    Thanks again: don

1 Like

Hey Don,

Wow this is great! I’ve never really thought about Evolve not doing calculations itself, people are usually designing courses to tell people how to do that in other tools :slight_smile:

My best suggestion would be that you find a little web-based tool that you can customise to make the calculations you need (or ask a friend or a GPT if all else fails) and then use an iFrame component to display the embed code for that item.

Let me know if you get it working!