PricingBlog

"Input field" in a formula always "string"?

  • patrickmast-1253394207716937911

    Patrick Mast

    1 year ago

    I need to check if a number is equal to 1. I'm using the "Equal" function in the formula. Currently, the second parameter is an input field, and the result is always returned as a string. Is there a way to set something in the input field so that it is recognized as a number? Or is there a shorter simpler way to return true if a number is 1?
    1253394207956271227-image.png
  • andreasmoller-1253420699088064674

    Andreas Møller

    1 year ago

    You can use the number formula to make sure it is a number.
  • patrickmast-1253432479801540799

    Patrick Mast

    1 year ago

    Hey @Andreas Møller, thanks! You are corect. The question is, is there a faster way to do it without using the "Number" formula. Is there a way to put something in the "input field" and let it be a number? Or is what you enter in the input field always a string?
  • andreasmoller-1253432639445012530

    Andreas Møller

    1 year ago

    No unfortunately not at the moment, but it is definitely something we want to improve 🙂
  • patrickmast-1253435797747531886

    Patrick Mast

    1 year ago

    Ok, thanks! Maybe let the "String" be a clickable entity that pops up a menu where you can choose the type of var. Just thinking out loud 😉
  • andreasmoller-1253435935367106661

    Andreas Møller

    1 year ago

    ... that is actually a really simple fix...
    😎1