Rabbinatix
Sign inGet started
Store

Read a query parameter

FreeLogic
@rabbinatix/read-a-query-parameter by Rabbinatixupdated Oct 4, 2026

Finds one parameter in `q=tea%20time&page=2` and decodes it.

Sign in to add

Loops over the name=value pairs with For Each and returns as soon as the name matches; when the loop completes without a match the value is null.

Shows: For Each, an early Return from inside a loop, Equals, URL Decode.

How to use it

Add it to your logic, then add a Call Function step in any logic and pick Query parameter. It belongs to no system, so every system can use it. Or download the TypeScript and call it from your own code.

Inputs
query: Text
name: Text
Outputs
value: Text (may be empty)
Previewdrag the steps around; scroll to zoom
Function Entry, Input / output. 0 inputs, 3 outputs. step 1 of 11
Query parameter
query
name
Split, String. 2 inputs, 1 output. step 2 of 11
Split
text
separator
parts
For Each, Flow control. 2 inputs, 4 outputs. step 3 of 11
For Each
array
Loop Body
element
index
Completed
Split, String. 2 inputs, 1 output. step 4 of 11
Split
text
separator
parts
Get Item, Collection. 2 inputs, 1 output. step 5 of 11
Get Item
array
index
item
Get Item, Collection. 2 inputs, 1 output. step 8 of 11
Get Item
array
index
item
Equals, Operators. 2 inputs, 1 output. step 6 of 11
==
A
B
result
Branch, Flow control. 2 inputs, 2 outputs. step 7 of 11
Branch
condition
True
False
URL Decode, String. 1 input, 1 output. step 9 of 11
URL Decode
text
result
Return, Input / output. 2 inputs, 0 outputs. step 10 of 11
Return
value
Return, Input / output. 2 inputs, 0 outputs. step 11 of 11
Return
value

Arrow keys: next or previous step in flow order. Alt with arrows: nearest step in that direction. Enter: open. Shift F10: more actions.

100%
Examplesrun live against the logic · 2/2 pass
PassedExampleInputOutput
Found{"query":"q=tea%20%26%20cake&page=2","name":"q"}{"value":"tea & cake"}
Missing{"query":"page=2","name":"q"}{"value":null}
Try it
Versions
In this package
Query parameter (entry)