This function is used to validate UserAgent based on Regular Expression.
Syntax:
CheckUserAgent(RegularExpression)
where
RegularExpression is the expression of device/browser types to be validated.
Example:
MessageBox(CheckUserAgent(“Chrome”)) will return true.
You can get UserAgent(This string provides information about the client, including the browser type, version, operating system, and device being used.) value using function GlobalVariable(UserAgent).