MCPcopy Create free account
hub / github.com/cel-expr/cel-cpp / IsTrue

Method IsTrue

common/value.h:489–489  ·  view source on GitHub ↗

Returns `true` if this value is an instance of a bool value and true.

Source from the content-addressed store, hash-verified

487
488 // Returns `true` if this value is an instance of a bool value and true.
489 bool IsTrue() const { return IsBool() && GetBool().NativeValue(); }
490
491 // Returns `true` if this value is an instance of a bool value and false.
492 bool IsFalse() const { return IsBool() && !GetBool().NativeValue(); }

Callers 6

EvaluateInMapFunction · 0.80
TESTFunction · 0.80
ContainsMethod · 0.80
ContainsMethod · 0.80

Calls 2

GetBoolFunction · 0.85
NativeValueMethod · 0.45

Tested by 1

TESTFunction · 0.64