Please note that the recommended version of Scilab is 2026.0.0. This page might be outdated.
See the recommended documentation of this function
equal
(=) assignment , comparison, equal sign
Description
- Assignment:
- The equal sign - =is used to denote the assignment of value(s) to variable(s). The syntax can be :- a=exprwhere- ais a variable name and- expra scilab expression which evaluates to a single result;
- [a,b,...]=exprwhere- a,- b,- ...are variable names and- expra scilab expression which results in as many results as given variable names.
 
- Comparison:
- The equal sign - =is also used in the comparison operators:- a==bdenotes equality comparison between the values of the expressions- aand- b;
- a~=bdenotes inequality comparison between the values of the expressions- aand- b;
- a<=band- a>=bdenote ordering comparison between the values of the expressions- aand- b.
 - See comparison for semantic details. 
Examples
See also
- less — (<) less than comparison
- greater
- boolean — Scilab Objects, boolean variables and operators & | ~
- isequal — comparison of objects
- comparison — comparison, relational operators
| Report an issue | ||
| << dot | Scilab keywords | extraction >> |