Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/aiscriptdev/aiscript
/ is_true
Method
is_true
aiscript-vm/src/value.rs:289–291 ·
view source on GitHub ↗
(&self)
Source
from the content-addressed store, hash-verified
287
}
288
289
pub fn is_true(&self) -> bool {
290
!self.is_falsy()
291
}
292
293
pub fn is_falsy(&self) -> bool {
294
self.is_nil() || (self.is_boolean() && !self.as_boolean())
Callers
3
any
Function · 0.80
all
Function · 0.80
filter
Function · 0.80
Calls
1
is_falsy
Method · 0.80
Tested by
no test coverage detected