Custom Command
FunctionsIs and Has Functions

$isValidHex

checks if the given int or hex code or color name is valid ,returns true,false

Usage

$isValidHex[int or hexcode or color name]

Example:


!!exec $isValidHex[#ffffff] , $isValidHex[test], $isValidHex[Red]

true , false, true

Function difficulty: Easy

Tags:
Is Valid Hex

On this page