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 PHP Login System using PDO Part 1: Create User Registration Page #6 How to uninstall Cocoapods from the Mac OS?

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
Array destructuring and Object destructuring in JavaScriptJavaScriptArguments in @mixin rules in SCSS (Sass)SCSSHow to remove trailing characters from a string using JavaScript?JavaScriptHow to create rotating texts using JavaScript and CSS?CSSCheck if mixin is being called in a style rule or not in SCSSSCSSHow to create an empty array in Swift?SwiftSorting Arrays in JavaScriptJavaScriptComponents and Props in ReactReactWhat does Containment mean in React?ReactHow to install Gulp with WordPress?WordPressHow to control file extensions with an .htaccess file?MiscellaneousSocial Media Colors: Sass VariablesMiscellaneous