• Resolved rvalsot

    (@rvalsot)


    Hello, I’m having a trouble with either with my pro activation or with the syntax of my formula, because of a nested if.
    Pseudo code version should be:

    
    if(product_taxonomy attribute="a") {
      p2 * x -> "the price of the product as you advice"
    } else(attribute="b"){
      p2 * [product_weight] *
        if(product_tag tag="a" ) {p4} elseif(product_tag tag="b") {p5} ... else{p#}
    }
    

    I get a return value always equal, and it shouldn’t be the case. And I couldn’t find an example at your site’s documentation

    • This topic was modified 3 years, 7 months ago by rvalsot.
Viewing 1 replies (of 1 total)
  • Plugin Author ProWCPlugins

    (@prowcplugins)

    Hi @rvalsot,

    Thank you so much for your query.

    You can use for this nested if:

    if(product_taxonomy attribute=="a") {
        p2 * x -> "the price of the product as you advice"
    }
    elseif(attribute=="b"){
        p2 [product_weight] *
           if(product_tag tag=="a" ) {p4} elseif(product_tag tag=="b") {p5} ... else{p#}
    }

    I hope you got the solution.

    Plus one more thing, if you need any kind of quick support for premium products then please create a support ticket to our support portal via filing the form to this link, https://prowcplugins.com/support/

    Thank you!

Viewing 1 replies (of 1 total)
  • The topic ‘Proper syntax for nested “IF”’ is closed to new replies.