General Specification Electrical Function gmw3110 General Motors Local Area Network Enhanced Diagnostic Test Mode Specification


GM WORLDWIDE ENGINEERING STANDARDS



Download 8,35 Mb.
Pdf ko'rish
bet17/406
Sana03.04.2022
Hajmi8,35 Mb.
#525939
1   ...   13   14   15   16   17   18   19   20   ...   406
Bog'liq
gmw3110

GM WORLDWIDE ENGINEERING STANDARDS 
GMW3110 
© Copyright 2010 General Motors All Rights Reserved 
February 2010 
Page 14 of 336 
body when second expression is TRUE 
OTHERWISE 
body when all expressions are FALSE 
ENDSELECT 
3.6.2.1.3 Loop Statement. 
Loop statements are useful when it is desirable to execute a body of code in a 
repetitive fashion until an exit criteria is established. This type of statement is typically used when performing 
operations on arrays of data or data structures as it provides an easy mechanism to index through the array. 
Loop statements use the keywords FOR and ENDFOR to mark the beginning and ending points of the loop 
statement. 
Included below is an example of a loop statement: 
FOR (target value1 TO value2 BY value3)
body to be performed for each value 
ENDFOR 
The first time the code encounters the keyword FOR, the variable 
target
is assigned a value defined by 
value1
. On the right of the keyword TO is a variable called 
value2
which is compared with the variable 
target
as a relational expression to determine if it is ok to exit the repetitive task. If the relational expression evaluates 
TRUE, then the body is executed. After executing the body of the loop, the variable 
target
is incremented by 
the value of the variable after the keyword BY (in this case 
value3
) and the relational expression is re-
evaluated. The body will continue to be executed as long as the relational expression evaluates to TRUE. 
Once the relational expression evaluates FALSE, the loop is exited and control continues with the next 
statement after the ENDFOR. 
Note:
The convention used throughout this specification for handling the case where value1 equals value2 is 
that the expression is considered TRUE and the body code shall be executed. 

Download 8,35 Mb.

Do'stlaringiz bilan baham:
1   ...   13   14   15   16   17   18   19   20   ...   406




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish