why use not operation in regex function salesforce -


could of pls explain following code. why not used for?

not(regex(zip_postal_code__c, "[0-9]{5}")) 

it looks code in validation rule. validation rules show error if result of evaluating code true.

regex(zip_postal_code__c, "[0-9]{5}") evaluate true if zip code in field valid , false if value not valid cause validation throw error if zip valid. since intention throw error when zip code not valid, not() function used invert or negate result of regex() function.


Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

c - Unrecognised emulation mode: elf_i386 on MinGW32 -