MCPcopy Index your code
hub / github.com/yuin/gopher-lua / LVAsBool

Function LVAsBool

value.go:38–38  ·  view source on GitHub ↗

LVIsFalse returns false if a given LValue is a nil or false otherwise true.

(v LValue)

Source from the content-addressed store, hash-verified

36
37// LVIsFalse returns false if a given LValue is a nil or false otherwise true.
38func LVAsBool(v LValue) bool { return v != LNil && v != LFalse }
39
40// LVAsString returns string representation of a given LValue
41// if the LValue is a string or number, otherwise an empty string.

Callers 9

loRequireFunction · 0.85
LessMethod · 0.85
initFunction · 0.85
objectRationalFunction · 0.85
strFindFunction · 0.85
initFunction · 0.85
objectRationalFunction · 0.85
ToBoolMethod · 0.85
ToBoolMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…