ISCOLOR

Returns true if the specified value is a color value.

Syntax

=ISCOLOR(value, fuzzy)

Arguments

ArgumentTypeDescription
valueAnyThe value to test
fuzzyBooleanSpecify whether the test should allow conversion

Examples

=ISCOLOR(RGB(255, 0, 0))true
Tests whether the RGB color (255, 0, 0) is a color.

=ISCOLOR("#112233", false)false
Tests whether the hex color string "#112233" is a color value without fuzzy matching.

=ISCOLOR("#112233", true)true
Tests whether the hex color string "#112233" is a color value with fuzzy matching.

=ISCOLOR(@"Property 1")false
Tests whether the shape data property @"Property 1" (123) is a color value.