Widgelix
  • Introduction
  • Get Started
    • Device Types
      • Repository
      • Create from scratch
    • Devices
      • Dashboard
      • History
      • Downlinks
      • Events
      • Settings
    • Global Map
    • Widgets
      • Gauge
      • Battery
      • Map
      • Chart
      • Digital
      • Level
      • Header
      • Image
      • Boolean
      • Scatter Plot
      • Math
      • Floor Plan
      • Asset Map
      • Heat Map
      • Log Chart
      • Downlink Button
      • Sankey
      • Report
      • Table
    • Organization
    • Global Dashboard
    • Rule Engine
  • Connectivity Integrations
    • Introduction
    • Options
      • GreenMesh LoRaWAN
      • Actility ThingPark
      • The Things Stack
      • Helium
      • Melita.io
      • LORIOT
      • Zenner
      • ChirpStack
      • Milesight
      • Senet
      • Sensoterra
      • Loxone
      • Sigfox
      • Webhook
  • Rule Engine
    • Introduction
      • Create Rule
      • IF Block
      • IS Block
      • THEN Block
      • Execution Options
    • Comparison Equations
    • Types
      • Compare with constant
      • Compare with device measurement
      • Geofences
  • Notifications
    • Introduction
    • Types
      • Slack
      • Discord
      • Email
      • SMS
  • Useful Tips
    • List of tips
  • Device Repository
    • Supported Devices
Powered by GitBook
On this page
  1. Rule Engine
  2. Introduction

IF Block

PreviousCreate RuleNextIS Block

Last updated 5 months ago

The IF block is used to select the measured data of a data field from one or more devices of a specific device type.

Select the device type from the Device type drop-down list.

Select the data field that you want to input for the rule from the Data field drop-down list.

Select the device to which you want to apply the rule, either by 'Select from list' or using the 'Select from map' option.

Select from list

  • Click on the text box and then, from the list, select the devices one by one. A tick mark will appear next to each selected device. You can click again on a selected device to deselect it.

  • If you have selected only one device, its name will appear in the text box.

  • If you have selected more than one device (e.g., 3 devices out of 20), the text in the text box will show as 3 of 20 selected.

Select from map

This option only works if your devices have been configured with geolocation.

  • Click on the Open map button.

  • A map will open in a model box.

  • Zoom (Ctrl + Scroll) into the area where your devices are located.

  • You can use a combination of circle and polygon shapes to define areas where the device could be.

  • Once added, you can edit the name of a circle or polygon by clicking on the edit (pencil) button.

  • You can delete a circle or polygon by clicking on the delete (bin) button.

Clicking on the delete button will not remove the devices shown inside the shape from the map.

  • Once finished, click on the Save button in the map modal.

  • Click on the + button to add more IF blocks and apply boolean operators like AND and OR between them.