ISCOLOR
Returns true if the specified value is a color value.
Syntax
=ISCOLOR(value, fuzzy)
Arguments
Argument | Type | Description |
---|---|---|
value | Any | The value to test |
fuzzy | Boolean | Specify 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.
Updated 9 months ago