Articles on: Blocks Creator
This article is also available in:

🟩 Input number

🟩 Input number



The Number Entry block allows you to capture a numerical value entered by the user via an interactive interface.


This block is essential for interactions requiring encrypted input, such as calculations, auctions, or parameter adjustments. It optimizes user experience by automatically displaying a number pad on mobile and strictly validating the input format.


πŸ“₯ Entries


  • Title (Text - Optional): Prompt text or question displayed above the input field (eg: "What is your age?").
  • Default value (Number - Optional): Pre-filled value in the field to guide the user.
  • Minimum value (Number - Optional): Lower limit authorized for entry.
  • Maximum value (Number - Optional): Upper limit authorized for entry.


πŸ“€ Outings


  • Numerical Input (Number): Valid numerical value entered by the user, ready to be used in calculations or conditions.
  • Validated (Stream): Flow triggered when the user validates their input (via button or Enter key), allowing the scenario to continue.


πŸ’‘ Example of use


Scenario: In-store discount calculation


  1. The player arrives at the checkout of a store with an item priced at €80.
  2. The Number entry block is configured with:
  • Title: "Enter the discount percentage (max 30%)"
  • Maximum value: 30
  1. The user enters "15" on their numeric keypad and validates.
  2. The Numerical Input (15) is transmitted to a calculation block to apply the reduction (80€ Γ— 0.85 = 68€).
  3. The Validated flow triggers the display of the new price and the continuation of the scenario.


βš™οΈ Technical Details

  • Strong typing: The block automatically rejects any non-numeric input, avoiding processing errors. Mobile keyboards switch to numeric mode for easier typing.
  • Real-time validation: Values ​​out of range (min/max) are blocked before validation, with visual feedback for the user.

Updated on: 04/03/2026

Was this article helpful?

Share your feedback

Cancel

Thank you!