Unary Operator "isknown"

QuantScript's unary

isknown
operator is used to check whether a value is known - meaning that its type is not Unknown.

Examples:

12345678
var = 5
isVarKnown = isknown var # -> true

var = unknown
isVarKnown = isknown var # -> false

var = 42 / 0
isVarKnown = isknown var # -> false

Table of Operands

Anything not listed here results in an Unknown
This operator is right associative -

isknown isknown x
is the same as
isknown (isknown x)
.

OperatorOperandResult
isknownNumberBoolean
isknownBooleanBoolean
isknownDayBoolean
isknownTimeBoolean
isknownFunctionBoolean
isknownUnknownBoolean
isknownSeries<Any>Series<Boolean>