Yogesh Chauhan's Blog

The * arithmetic operator in Envision Basic

in Miscellaneous 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 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

#Dec 4 What is Etrieve Flow? #Dec 2 The unique operator($) in Envision Basic #Nov 25 Steps to Install Microsoft SQL Server on a MacOS #Nov 11 What is DevOps? #Nov 10 The * arithmetic operator in Envision Basic #Nov 10 What are Big Data Clusters in SQL Server?
You might also like these
Debugging in WordPress Part 3: SCRIPT_DEBUG and SAVEQUERIESWordPressHow to create a Horizontal Scroll on button click using JavaScript?JavaScriptFor Each Loop in Swift for BeginnersSwiftHow to display random posts in WordPress?WordPressWP_Query Class in WordPressWordPressWhat are Conditional Tags in WordPress?WordPressSQL Right JoinSQL/MySQLWhat does JSX do in React?ReactAll different methods for accessing elements in the DOM using JavaScriptJavaScriptOrder By and Group By in PostgresPostgres5 Key Principles Of Good Website UsabilityUI/UXCan we execute conditions in SQL?SQL/MySQL