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 How to add Read More Read Less Button using JavaScript? #2 How to check if radio button is checked or not using JavaScript? #3 Solution to the error “Visual Studio Code can’t be opened because Apple cannot check it for malicious software” #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 undo Git Commits on Pantheon?MiscellaneousDoes :is() pseudo selector hint at CSS preprocessing in the future?CSSEssential SQL Commands We Need to KnowSQL/MySQLAmpersand (Parent Selector) in SCSS (Sass)SCSSSelector Lists and Combinators in SCSS (Sass)SCSSLearn to create your skill bar using CSSCSSThe * arithmetic operator in Envision BasicEnvision BasicHow to define variables in SCSS (Sass)?SCSSFull and Partial ROLLUP in Postgresql with ExamplesPostgresHow to remove the Gutenberg Block Library CSS from WordPress?WordPressHow to Remove PHP File Extensions From Your Website URLs?PHPContent types in DrupalDrupal