How to save “if” statement result as a global variable

[ad_1]

Hello @saralanda

Thank you very much for using our plugin. If you want the scope of the boardmonth variable to be global, simply use it without declaring the variable with var

(function(){
boardmonth="";
...
})()

Note the equations are evaluated depending on whether the fields used in them are modified. So, you do not control the order in which the equations are evaluated. In the other equations where you want to use the boardmonth variable, you must check first if the variable exists.

Best regards.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer