Skip to content

pos-case

Overview

Defines a template to use if the specified condition is met - to be used with pos-switch. See storybook for an example.

Properties

Property Attribute Description Type Default
else else The test only evaluates to true if tests for preceding cases have failed boolean undefined
everyValueEq every-value-eq Test if every value linked by if-property or if-rev is equal to the attribute string undefined
everyValueGt every-value-gt Test if every value linked by if-property or if-rev is strictly greater than the attribute. First a number comparison is attempted, then string. string undefined
everyValueGte every-value-gte Test if every value linked by if-property or if-rev is greater than or equal to the attribute. First a number comparison is attempted, then string. string undefined
everyValueLt every-value-lt Test if every value linked by if-property or if-rev is strictly less than the attribute. First a number comparison is attempted, then string. string undefined
everyValueLte every-value-lte Test if every value linked by if-property or if-rev is less than or equal to the attribute. First a number comparison is attempted, then string. string undefined
ifProperty if-property Test if the resource has the specified property (forward link) string undefined
ifRev if-rev Test if the resource is the subject of the specified property (backward link) string undefined
ifTypeof if-typeof Test if the resource is of the specified type string undefined
not not Negates the result of the test boolean undefined
someValueEq some-value-eq Test if some value linked by if-property or if-rev is equal to the attribute string undefined
someValueGt some-value-gt Test if some value linked by if-property or if-rev is strictly greater than the attribute. First a number comparison is attempted, then string. string undefined
someValueGte some-value-gte Test if some value linked by if-property or if-rev is greater than or equal to the attribute. First a number comparison is attempted, then string. string undefined
someValueLt some-value-lt Test if some value linked by if-property or if-rev is strictly less than the attribute. First a number comparison is attempted, then string. string undefined
someValueLte some-value-lte Test if some value linked by if-property or if-rev is less than or equal to the attribute. First a number comparison is attempted, then string. string undefined

Built with StencilJS