Criteria Problem | WordPress.org

[ad_1]

Hello @fibbu

I don’t understand the condition you want to check …resultText value is text.

The variable resultText contains a text because the code provided assigns a text to it:

resultText = kriter4 < 60 ? '<span style="color: red;">Başarısız</span>' : '<span style="color: green;">Başarılı</span>';

or

resultText = kriter4 < 70 ? '<span style="color: red;">Başarısız</span>' : '<span style="color: green;">Başarılı</span>';

Both pieces of code assign a text to the resultText variable.

Best regards.

Thread Starter
fibbu

(@fibbu)

Sorry, I was going to write the criterion 4 value, I wrote it wrong.
If the criterion 4 value is not a numeric value, write the text ‘NULL’.

Hello,

You can insert a piece of code as follows:

if( isNaN(kriter4) ) return 'NULL';

Bes 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