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.

Syntax

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--
$END

Usage

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 check if radio button is checked or not using JavaScript? #2 How to add Read More Read Less Button using JavaScript? #3 Solution to “TypeError: ‘x’ is not iterable” in Angular 9 #4 How to uninstall Cocoapods from the Mac OS? #5 PHP Login System using PDO Part 1: Create User Registration Page #6 How to Use SQL MAX() Function with Dates?

Recently Posted

#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 #Jan 14 How to display a student’s individual transcript in Colleague? #Jan 11 How to install PuTTY on a MacOS?
You might also like these
What is HTMLUnknownElement?HTMLThe order Property in Flex Items in CSSCSSWordPress: How to change a blog address (URL)?WordPressHow to CREATE TABLE in SQL with and without using Another Table?SQL/MySQLHow to create a smooth scrolling effect with CSS?CSSWordPress: How to loop through a repeater field in ACF?WordPressHow to progressively load images and add a blurry placeholder?CSSHow to activate and deactivate hooks in a WordPress plugin?WordPressHow to select multiple values in React dropdown?ReactHow to create a Star Ratings using CSS?CSSHow to set up the local environment and workspace for Angular development?AngularHow to create a simple digital clock using JavaScript?JavaScript