Postcode change colour if to many or to few digits
I have made a script that gets a UK postcode into the correct format:
@Postcode = TextFormatRemove(Substitute(Self; " " ; "" )) ;
Length(@Postcode) = 6 ;
Upper(Replace(@Postcode; 4 ; 0 ; " " ) ) ;
Upper(Replace(@Postcode; 5 ; 0 ; " ") )
I would like to make the postcode change to red if it has fewer than 6 characters or more than 7 characters using the script
TextColor(Self; RGB(255; 0; 0))
but i cannot work out how to get this to work.
Your help would be appreciated.