Yogesh Chauhan's Blog

The * arithmetic operator in Envision Basic

in Envision Basic on November 10, 2021

The * arithmetic operator

Syntax


expression * expression

The * arithmetic operator basically multiplies the expressions.

It can multiply the expressions on either side of the operator.

The * arithmetic operator is a synonym for another Envision Basic command, REM. REM creates a comment line.

You must include the REUSE function to apply arithmetic operations to all elements of a dynamic array.

Example


OUTPUT.DATA = V.VAR1 * V.VAR2

The *= arithmetic operator

Syntax


var =* expression

The *= arithmetic operator multiplies the value of a variable by the specified number.

Using *= operator is more efficient since it’s less code. For e.g. VAR *= 2 is better then VAR = VAR * 2

You must include the REUSE function to apply arithmetic operations to all elements of a dynamic array.

Example


VAR1 = 10
VAR1 *= 2
// VAR1 IS 20 NOW


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
What’s new in Constructor in PHP 8?PHPHow SCSS (Sass) finds a module without a file extension?SCSSSELF JOIN in PostgresPostgresCSS align-items property examplesCSSHow to Remove PHP File Extensions From Your Website URLs?PHPWhat is a “promise” in JavaScript?JavaScriptGap in Flex?CSSHow to enable and disable button using JavaScript?JavaScriptHow to link/add CSS file to HTML Document?CSSDROP DATABASE (remove a database) from PostgresPostgresSome SQL LIKE Operators We Need to Keep in MindSQL/MySQLSelf-Driving and Intelligent NetworksMiscellaneous