$isValidHex

Checks whether the given color hex is valid or not.

Note

true means the color hex is valid, false means it isn’t.

Syntax

$isValidHex[Color hex]

Parameters

  • Color hex (Type: String || Flag: Emptiable): The color hex to check.

Example

$nomention
Is valid HEX? $isValidHex[$message]
!example #E67E22 Is valid HEX? true !example E67E22 Is valid HEX? true !example text Is valid HEX? false

What is this?

How $message works?

🤖 Playground

Here you can understand how this function works.

Input:

$isValidHex[]

Output:

Is valid HEX? true