General Handlers

Created by Reachware Support, Modified on Tue, 17 Mar at 12:13 PM by Reachware Support

General Handlers in Reachware Studio are predefined functions used to apply logical conditions, extract data, and handle system variables during the mapping process. These handlers help you make decisions, validate data, and control the flow of information between systems.

General Handlers provide essential logic and control functions that allow you to:

  • Apply conditional logic (If / ElseIf)
  • Extract specific values from complex objects
  • Handle empty or missing data gracefully
  • Make decisions based on multiple conditions

Accessing General Handlers

1

Click on any destination field in the mapping panel

2

A pop-up window opens titled "GENERAL HANDLERS"

3

You'll see two sections:

  • Handlers — Available functions (If, ElseIf, IsNull, JS)
  • Keywords — Special values (true, false, null, undefined, ignore)

Available General Handlers

JS()

JS(expression)

Returns the value of a JavaScript expression. Allows you to use JavaScript code within your mapping for complex transformations, calculations, or data manipulation.

Example

JS({{quantity}} > 10 ? "In Stock" : "Low Stock")

If()

If(condition; value1; value2)

Returns value1 if the condition evaluates to true; otherwise returns value2.

Example

If(1=1; A; B) = A

Keywords

General Handlers include special keywords that represent specific values:

KeywordDescriptionExample
trueBoolean true valueIf({{is_active}} == true; "Yes"; "No")
falseBoolean false valueIf({{is_deleted}} == false; "Active"; "Deleted")
nullRepresents no valueIf(A == null; A; B)
undefinedRepresents undefined valueIf({{var}} == undefined; "Not Set"; {{var}})
ignoreSkip field mapping entirelyIf({{status}} == "draft"; ignore)

Related Topics

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article