Support » Plugin: Calculated Fields Form » CHECK IF INTEGER

  • Resolved Graicifyd

    (@graicifyd)


    Please how can I use the ‘if function’ to check if a fieldname2 is an integer?

    I have used this

    (function(){
    if(fieldname2==(int)) return3;
    
    })()

    but it id not work.

    • This topic was modified 11 months, 1 week ago by Graicifyd.
Viewing 1 replies (of 1 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @graicifyd

    The condition would be FLOOR(fieldname2) == fieldname2 to check if the integer part of the number is equal to the number.

    I’m sorry, but I cannot continue implementing your project through the WordPress forum. If you need that I implement your project, you must contact me through my private website: Custom Coding Service

    Best regards.

Viewing 1 replies (of 1 total)
  • The topic ‘CHECK IF INTEGER’ is closed to new replies.