I am doing this if statement but i can’t understand why it doesn’t work. Can you please help?
let coin = Number($w('#coins').text);
let cost = Number($w('#price').text);
if (coin > cost) {
$w('#text4').text = "You can buy this Item"
}
I am doing this if statement but i can’t understand why it doesn’t work. Can you please help?
let coin = Number($w('#coins').text);
let cost = Number($w('#price').text);
if (coin > cost) {
$w('#text4').text = "You can buy this Item"
}