Yogesh Chauhan's Blog

How to use $IF operator in Envision Basic?

in Envision Basic on December 25, 2021

The IF statements are same for every programming language. The IF statements are same as we use in real life conversations.

IF something is true then this. The otherwise part is implied.

In Colleague Studio’s Envision Basic language, using the $IF operator you can specify the target platform(s) for which a code block is supposed to be included by the generator.


The syntax is same as any other programming language except you need to use $(dollar) sign before the IF and you need to close the if statement using $END.

$IF --add directive-- THEN
--add Envision Basic statements--


The $IF operator in Envision Basic has a couple of more usages.

You can check if the Operating System is a UNIX or a Windows or even a database server platform.

This is how we can check it:

  • Use UNIX when generating for a platform running on UNIX OS.
  • Use NT when generating for a platform running on WINDOWS oS.
  • APPSERVER will return true except when generating code meant to run on the database server, for e.g. a computed column subroutine.

Most Read

#1 Solution to the error “Visual Studio Code can’t be opened because Apple cannot check it for malicious software” #2 How to add Read More Read Less Button using JavaScript? #3 How to check if radio button is checked or not using JavaScript? #4 Solution to “TypeError: ‘x’ is not iterable” in Angular 9 #5 How to uninstall Cocoapods from the Mac OS? #6 PHP Login System using PDO Part 1: Create User Registration Page

Recently Posted

#Apr 8 JSON.stringify() in JavaScript #Apr 7 Middleware in NextJS #Jan 17 4 advanced ways to search Colleague #Jan 16 Colleague UI Basics: The Search Area #Jan 16 Colleague UI Basics: The Context Area #Jan 16 Colleague UI Basics: Accessing the user interface
You might also like these
How to create a simple stopwatch using JavaScript?JavaScriptHow to detect if browser supports WebP format on server side PHP script?PHPWhat’s a Log File and What are Log File Monitors?MiscellaneousMIN, MAX, COUNT, AVG and SUM in SQLSQL/MySQLHow to create Flickering Texts using CSS?CSSWhat are Class Constants in PHP?PHPSQL Left JoinSQL/MySQLIntroduction to Angular modules Part 3: NgModules vs JavaScript modules and Angular librariesAngularCreate dynamic selectors using SCSS (Sass)SCSSHow to uninstall Cocoapods from the Mac OS?MiscellaneousWhat are Controlled Components in React?ReactHow to create a Progress Bar using JavaScript?JavaScript