[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.
