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
The difference between isFinite() method and isFinite() function in JavaScriptJavaScriptHigher Order Functions in JavaScript with ExamplesJavaScriptSlider animation using CSS transform propertyCSSLEFT JOIN in PostgresPostgresHow to add a select dropdown in React?ReactSequence generator (range) using JavaScript Array.from()JavaScriptHow to add today’s date in HTML input date value using JavaScript?JavaScriptHow to Install Xcode Command Line Tools on MacOS?MiscellaneousHow to Use SQL MAX() Function with Dates?SQL/MySQLWhat are keys in React?ReactFETCH clause in PostgreSQLPostgresHow to get recent posts in WordPress?WordPress