EnglishGermanFrenchRussianPolishItalianSpanish
Log inRegister
 
<RetVar/IF><Var/Array>[<Var/Number>]
Post new topic This topic is locked: you cannot edit posts or make replies.
View previous topic :: View next topic
Author Message
mark_a_condren





Joined: 03 Aug 2005
Posts: 1385 on topic
Location: Newcastle - Australia
Thank you for registering your game
modified
PostPosted: Sat, 11. Sep 10, 11:53    Post subject: <RetVar/IF><Var/Array>[<Var/Number>] Reply with quote Print

[skip] if [not]|while [not]| <RetVar/IF> = <Var/Array> [ <Var/Number> ]


[skip] if [not]|while [not]| = The possible 'Conditional' statements that can be used with this command.
<RetVar/IF> = Command return, with an 'if' statement used it will be TRUE (1) if condition passes or FALSE (0) if it fails, orherwise if you use a Variable it will be the value of thr selected array at the selected index.
<Var/Array> = The required array name.
<Var/Number> = The index (element) in the required array.


Allows you to assign the value of an array element to a variable, or to create a condition or
while loop based on whether the element is set to a value or is null.


Example:

$array.item = $array.1 [ 0 ]

$array.item will be the value from $array.1 at the selected index, in this case, element zero [ 0 ].


Command Location:





Last edited by mark_a_condren on Sat, 11. Sep 10, 12:31; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail
Alex Vanderbilt
Winner X3 Sektorquest


MEDALMEDAL

Joined: 04 May 2006
Posts: 2113 on topic

Thank you for registering your game
PostPosted: Sun, 3. Oct 10, 17:08    Post subject: [TiP][49] 286696 Reply with quote Print

[skip] if [not]|while [not]| <RetVar/IF> = <Var/Array> [ <Var/Number> ]


[skip] if [not]|while [not]| = Eine mögliche Bedingung, die mit dem Kommando verwendet werden kann.
<RetVar/IF> = Kommandorückgabe, wenn mit einer if-(Wenn)-Abfrage verwendet, wird TRUE (1) (Wahr) für den Fall zurückgegeben, dass die Bedingung erfüllt ist, und FALSE (0) (Falsch), wenn nicht. Für den Fall, dass eine Variable verwendet wird, wird diese als Wert für das gewählte Array im entsprechenden Index verwendet.
<Var/Array> = Der angeforderte Names des Arrays.
<Var/Number> = Das Listenelement im angeforderten Array.

Das Kommando erlaubt es, den Wert eines Arrayselements einer Variabele oder eine Bedingungsabfrage oder while-(während)-Schleife zu zuordnen, basierende darauf, ob das Element eine Variable ist oder null.

Beispiel:

$array.item = $array.1 [ 0 ]

$array.item ist der Wert von $array.1 in der ausgewählten Liste, in diesem Fall Element Null [ 0 ].


Zu finden unter:



Back to top
View user's profile Send private message
Juggernaut93



MEDAL

Joined: 17 Jul 2011
Posts: 2198 on topic
Location: DeVries/Verità Accecante/Corona Ardente
Thank you for registering your game
PostPosted: Sun, 22. Jul 12, 17:08    Post subject: [39]286696 Reply with quote Print

[skip] if [not]|while [not]| <RetVar/IF> = <Var/Array> [ <Var/Number> ]


[skip] if [not]|while [not]| = Le possibili istruzioni condizionali che possono essere usate con questo comando.
<RetVat/IF> = Il ritorno del comando; se viene usata un'istruzione "if" sarà TRUE (1) se la condizione passa o FALSE (0) se fallisce, altrimenti, se usi una variabile, essa assumerà il valore dell'array selezionato all'indice selezionato.
<Var/Array> = Il nome dell'array richiesto.
<Var/Number> = L'indice (l'elemento) nell'array richiesto.


Ti permette di assegnare il valore di un elemento di un array a una variabile o di creare una condizione o un loop "while" in base a se un elemento è impostato su un valore o se invece assume valore null.


Esempio:

$array.item = $array.1 [ 0 ]

$array.item assumerà il valore di $array.1 all'indice selezionato, in questo caso l'elemento zero [ 0 ].


Posizione dell'istruzione nella lista:



Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic This topic is locked: you cannot edit posts or make replies.
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
Control Panel
Login Data
The time now is Mon, 24. Apr 17, 01:33

All times are GMT + 2 Hours


Board Security

Copyright © EGOSOFT 1989-2017
Powered by phpBB © 2001, 2005 phpBB Group
Template created by Avatar & BurnIt!
Debug: page generation = 0.30857 seconds, sql queries = 17