Using one function instead of many: Let a variable set the default in a function

Usecase:
Guest Harbour with RV parking.
Two QR signs.
The possibility to pay for either boat or RV.
…Without having to select boat or RV: The QR sign should default to one.

The usual way would be to make two sets of payment functions, one for boats and one for RVs.
But the advantage of being lazy is to figure our shortcuts :slight_smile:

Solution:
Two identical objects using the same function block.
A variable added to the objects that selects Boat or RV (Dropdown).
In the payment function, use the variable as the default.
Connect each QR sign to each object.

Conclusion: This simplifies everything by not having to duplicate the functions. And then duplicate again for each account language…