Diamond: Difference between revisions

From NARS2000
Jump to navigationJump to search
No edit summary
No edit summary
Line 1: Line 1:
__NOTOC__
__NOTOC__
<h1> {diamond} &mdash; (Replace this with Meaning of symbol) &mdash; Keystroke ?ALT+X &mdash; Character 0000</h1>
<h1> {diamond} &mdash; Statement separator &mdash; Keystroke ALT+` (Accent grave) &mdash; Character 8900 or x22C4</h1>
==Usage==
==Usage==
The diamond symbol <big>{diamond}</big> is used to start a new statement on the same line. It is used similarly to the ; in C, Pascal, PHP and many other languages, or the : or \ in some versions of Basic.
==Example==
==Example==
==See Also==
In this example, the variable K is tested to see if it is greater than or equal to 1. If the test fails, k is set to 1.<br/>
:<code><big>{goto}(k{ge}1)/Xr {diamond} K{:=}1<br/>Xr:</big></code><br/>
It is the same as
:<code><big>{goto}(k{ge}1)/Xr <br/> K{:=}1<br/>Xr:</big></code><br/>




 
{{Article footer}}
{{Language Toolbar}}
{{Symbol footer|11|D}}
[[Category:Mouse Group 11|D]]
[[Category:Symbols|D]]

Revision as of 06:08, 14 March 2013

⋄ — Statement separator — Keystroke ALT+` (Accent grave) — Character 8900 or x22C4

Usage

The diamond symbol is used to start a new statement on the same line. It is used similarly to the ; in C, Pascal, PHP and many other languages, or the : or \ in some versions of Basic.

Example

In this example, the variable K is tested to see if it is greater than or equal to 1. If the test fails, k is set to 1.

→(k≥1)/Xr ⋄ K←1
Xr:

It is the same as

→(k≥1)/Xr
K←1
Xr:



See Also
System Commands System Variables and Functions Operators


Keyboard
A+S
Alt ¨ ¯ < > × ÷
Sh ~ ! @ # $ % ^ & * ( ) _ +
Key ` 1 2 3 4 5 6 7 8 9 0 - =
A+S
Alt ? § π
Sh Q W E R T Y U I O P { } |
Key q w e r t y u i o p [ ] \
A+S
Alt
Sh A S D F G H J K L : "
Key a s d f g h j k l ; '
A+S χ
Alt
Sh Z X C V B N M < > ?
Key z x c v b n m , . /
NARS 2000 Lang
Tool
Bar
+ - × ÷ * ! ? |
< = >
~ § π .. ,
/ \ ¨ .
_ ¯
Second Row i j k i j k l g p r v x

[[Category:Mouse Group {{{1}}}|{{{2}}}]]