MCPcopy Create free account
hub / github.com/KDE/labplot / ifCondition

Function ifCondition

src/backend/gsl/functions.cpp:890–894  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

888}
889
890double ifCondition(const double condition, const double valueIfTrue, const double valueIfFalse) {
891 if (convertDoubleToBool(condition))
892 return valueIfTrue;
893 return valueIfFalse;
894}
895
896double andFunction(const double v1, const double v2) {
897 return (convertDoubleToBool(v1) && convertDoubleToBool(v2));

Callers

nothing calls this directly

Calls 1

convertDoubleToBoolFunction · 0.85

Tested by

no test coverage detected