‼
To give you the best experience, this site uses cookies. Continuing to use
9bis.net
means you agree to our use of cookies.
Variables_syntax
(
en )
Last modification : 2013/01/26 19:17
Index
/
Recent changes
/
News
/
Forum
/
Download
/
Contact
Edit (
Help
) /
Rename
/
History
All variables in MSH.EXE are : * globals: There are stored into the [global environment|?page=env] * strings characters: conversions into scalar types are automatically made on demand A variable names can contains alphanumeric characters ('''A-Z''','''a-z''','''0-9''') and the underscore characters ('''_'''). Here are valid names: A, Abc, Z123, A_r2. It is possible to define arrays. Each item of an array appears separately in the [environment|?page=env]. {msh> set A{[}1{]}="1" ; set A{[}2{]}="2" msh> print ${{}A{[}1{]}{}} ${{}A{[}2{]}{}} 1 2} Variable names are also case sensitives: {msh> A=MAJOR msh> a=minor msh> print $A MAJOR}To get the content of a variable, just add the dollar character ('''$''') before its name.
Password :
Wiki utilisant
PumaWiki 1.0
2025/05/09 16:09 -- en -- 18.222.183.98