SyntaxFix
Write A Post
Hire A Developer
Questions
You just have to compare if the value & its absolute value are equal:
if (value == Math.abs(value)) return "Positif" else return "Negatif"