false
is zero. true
is -1
. All other non-zero integers are also like a boolean true
.
Answered
What numbers mean "true" and "false" in FunC?
Programming languages often use 0 for "false" and -1 for "true". It works that way in FunC, too. But what about all the other numbers? Do they have a boolean value and which one is it?
This question was imported from Telegram Chat: https://t.me/tondev/136159
12K Views
1
Answer
one year ago
one year ago
Tags