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 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 Solution to the error “Visual Studio Code can’t be opened because Apple cannot check it for malicious software” #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
What does it mean by Continuous Integration, Continuous Delivery and Continuous Deployment?MiscellaneousLearn to Implement Estimated Reading Time using PHP Part 1: The BasicsPHPHow to add Go Back button in Swift 5?SwiftHow to Install PHP Laravel on MacOS Catalina?PHPList of all Pseudo Elements in CSSCSSHow to add Read More Read Less Button using JavaScript?JavaScriptHow to install PuTTY on a MacOS?MiscellaneousHow to Hide HTML elements automatically after few seconds using JavaScript?HTMLWhat is the correct way to enqueue multiple CSS files in WordPress?WordPressWhy it’s not a good idea to create Number objects in JavaScript?JavaScriptWhen you don’t want to @forward every member in SCSS (Sass)SCSSthe box-sizing property in CSSCSS