Moonsoft Software Solutions

Calculator commands

Started 18 Oct 2011 · 1 reply

  1. anonymous
    Hi!

    Can I just ask, are you able to add 'if' 'elseif' 'and' and 'or' commands into the php code? I know you can normally, but have tried within the calculator and it doesn't seem to like it?

    Also, can you use the value of 2 columns matching input to determine an end value in the matrix?

    Kind Regards
  2. Moonsoft support
    Hello,
    all valid php code is executed by the calculator, so you can include as many complex lines as you want. If calculate button throws an eval error, then you should check your code to be sure it's valid php.

    About the matrix, what you get is an array of values, indexed by first column, so you can loop using foreach, matching values or getting the right interval....in fact, all you can get with php functions and operators will work.


    Best regards

Still stuck?

Customers with an active license can open a support ticket.

Log in to open a ticket