# String formulas FAQs

Get answers to frequently asked string formula questions.

What are string formulas in Workato?

Strings are sequences of text and characters. String formulas in Workato are allowlisted Ruby methods that enable you to manipulate and work with strings.

What is the purpose of conditionals in string formulas?

Conditionals allow you to apply if-else logic to strings, which you can use to perform various actions based on conditions. Refer to Conditionals for more robust instructions on how to add conditionals to formulas.

How do I include and exclude work in string formulas?

The include? formula checks if a specific substring is present in a string and returns true if it is found.

The exclude? formula checks if a specific substring is not present in a string and returns true if it is not found.

Can I use text manipulation with string formulas?

Yes. You can manipulate text within strings with the following formulas:

Can I convert alpha-2 and alpha-3 content?

Yes. You can convert alpha-2 and alpha-3 country codes to country names or convert country names to country codes with the following formulas:

You can convert alpha-2 and alpha-3 country codes to currency codes or currency names with the following formulas:

What is the purpose of the ordinalize formula?

The ordinalize formula turns a number into an ordinal string, such as 1st, 2nd, 3rd, and so on.

What formula should I use to convert data types?

You can use the to_s formula to convert various data types, including numbers, dates, and more into string data types.

How do I convert the Ruby decrypt method output to a string?

The Ruby decrypt method returns a byte array instead of a string by default. You can convert the decrypt method output to a string by appending the .as_string() or .as_utf8 function to your formula.


Last updated: 11/26/2024, 11:22:21 PM