Phone is Mobile
Verb: isMobile
Available from: <Standard>
Checks if the phone number entered is mobile.
Syntax
isMobile [--culture(String)] --phone(PhoneNumber) (Boolean)=value
Inputs
Script | Designer | Required | AcceptedTypes | Description |
---|---|---|---|---|
--culture | Language | Optional | Text, Culture | Language for phone number format entered:
|
--phone | Phone Number | Required | Phone Number | Phone number to be verified. |
Outputs
Script | Designer | AcceptedTypes | Description |
---|---|---|---|
value | Is Mobile | Boolean | Returns "True" if the phone number is mobile, or "False" if it is not. |
Example
The command is used to verify that the telephone number is a cell phone with a format corresponding to the selected "Brazilian Portuguese (ptBR)" language:
defVar --name verifiedNumber --type PhoneNumber
defVar --name return --type Boolean
extractPhoneNumber --defaultareacode 17 --culture pt-BR --text "Mobile number is: (17) 9999-0000" verifiedNumber=first
isMobile --culture pt-BR --phone ${verifiedNumber} return=value
logMessage --message "${return}" --type "Info"
// The example returns the following output:
// True
Remarks
The Phone is Mobile command can be used in conjunction with any command that returns a telephone number variable.
This current version of IBM RPA Studio only supports Brazilian phone numbers.