MCPcopy 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

anyFunction · 0.80
allFunction · 0.80
filterFunction · 0.80

Calls 1

is_falsyMethod · 0.80

Tested by

no test coverage detected