#comparison
1 messages · Page 1 of 1 (latest)
yeah you can, in my case i use skript-placeholders addon, you can use this to get the value of the placeholder and compare it https://skripthub.net/docs/?id=4372
yes I tried
if {_amet} is greater than or equal to 80:
but this is the test section, and as a result, for some reason, in any case, it turns out that I have less than 80
can you send the code¿
trigger:
set {_amet} to placeholder "uecon_balance_amet_total_formatted" of player
if {_amet} is greater than or equal to 80:
send "true" to player
else:
send "false" to player
always "false"
maybe because it is showing the placeholder as a text and not as a real number. In that case you are comparing a text with a number
you should use set {_amet} to placeholder... of player parsed as a number
the _formatted makes me suspicious of whether it's parsable tbh
well that didn't help
.
your placeholder probably has stuff like $ or commas in it
that makes it not parsable as a number
you will have to remove them or use a different placeholder
placeholder has no punctuation marks, only a number
Okey,thk
Another question, I have large numbers separated by a space. Is it possible to remove it, it doesn't work
replace all " " with "" in {_amet}
hey?
what?
⬆️
what does that mean
this problem
yes what does "doesn't work" mean
nothing changes, as before the replacement it was conditionally 10 000 and as a result, 10 000 remained
space is not removed
how did you test
displayed variables in chat
show
replace all " " with "" in {_amet} send "%{_amet}%"
a.. and how to recognize what it is. what to replace
idk you'd have to figure it out
maybe ask the plugin author
or use a different placeholder
or even use player's balance
it works with other currencies