Criterion Problems | WordPress.org

[ad_1]

Hello @pexel

There are two issues with your equation.

First, do not use single-line comments in the equations. The plugin minifies the equations, and the use of single-line comments can break their code. If you want to include comments in the equations, please use comments with block structure.

In short, edit:

// Assign the value to kriter1

As follows:

/* Assign the value to kriter1 */

Second, I don’t know if you’re initializing the aa and bb variables in another place. But if none of the conditional statements is satisfied, the aa and bb variables do not exist, and the sum kriter1 = aa+bb; will throw an error.

The correct would be to initialize the variables as you initialized kriter1:

var kriter1 = '', aa = 0, bb = 0;

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