Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »


isType Block

The isType Block allows the user to make a boolean point on/off depending on the value of a given type.

The isType Block can be found in the B-Line app, after creating a new program. Start typing isType and you'll see it as on option to select it.

Using the isType Block

After the user has created or opened a new or existing program, in the Runcycle, the isType block can be used inside different other blocks like: SET, IF, RETURN....

Let say we have a Set block and the user wants to have the fan be on if the type of variable is a number. So Set any boolean point to equal isType like above.

Then we want to click on the isType block and select Number for type.

After we select Number for the type, now we want to type in the name of the variable under the Val property or drag your variable in there. (It takes a string so don't worry if you variable becomes a string after saving the program)

Our coolingCoil is a number variable. So what this line is saying is that if the variable is a number type, then make the boolean on. If it is a different type like a boolean type, then it will be set to off. The variable has to be whatever the type we chose for it to be, if not, it will be false.

A use case would be that a coolingCoil is numeric on some vavs, but on others it is a boolean type. We want it to do certain things when it is a particular type.

 

  • No labels