Announcement

Collapse
No announcement yet.

Boolean FunctionParameter Interesting Behavior

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16
    FYI, this bug appears to not be fixed in 7.9. It seems pretty serious and has probably caused more than one person to spend too much time observing strange behaviour.

    Comment


    • #17
      Here's a little fix that will stay compatilble if this bug is fixed:

      var xuseAlarm = 0;

      function main(useAlarm)
      {
      //init code
      if (useAlarm == "true")
      xuseAlarm = true;
      else if (useAlarm == "false")
      xuseAlarm = false;
      else
      xuseAlarm = useAlarm;
      // rest of code
      }

      Comment


      • #18
        cashcarewins
        You could also just use xuseAlarm = eval(useAlarm) and it will work even when a fix is implemented.
        I have used this solution in all the builtin studies in the EFS2 Custom folder to show/hide the title parameters.
        Alex

        Comment


        • #19
          Hey folks, you're right this one has slipped under the radar for too long. It has been fixed for 7.9.1, and will show up in Build 723 or later.

          Sorry for the delay in getting this addressed.

          Comment

          Working...
          X