Viewing 1 replies (of 1 total)
  • James StylemixThemes

    (@jamesstylemixthemes)

    Hi @garib,

    Thank you for reaching out to us!

    The issue is caused by an incorrect formula setup. When using multiple if statements, you should use IF followed by ELSE IF for the subsequent conditions, without using semicolons. Here’s how you should structure it – please see this screenshot for reference: https://share.zight.com/yAuRQKrR

    Here is the corrected version of your formula:

    IF(A == 0.17) { ROUND((D - H) / 3) }
    ELSE IF(A == 0.18) { ROUND((D - H) / 4) }

    Keep in mind that incorrectly written formulas may still work in Firefox due to differences in how browsers interpret JavaScript, but the formula should follow proper syntax to ensure consistent behavior across all browsers.

    You can also refer to our documentation for more details on using formula elements:
    https://docs.stylemixthemes.com/cost-calculator-builder/calculator-elements/total

    Best regards,
    James

Viewing 1 replies (of 1 total)

The topic ‘The calculation does not work in different browsers’ is closed to new replies.