Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MintJulep on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problems with relations in assembly

  • Thread starter Thread starter pep
  • Start date Start date
Status
Not open for further replies.
P

pep

Guest
Hi,

i'm a student and i've to make relations ni proe.eg: when i use an 'if' , 'else' isn't accepted.the mission i've to program is to complicated to write here, but if somebody thinks he/she could help me, i can explane it in a mail with attachement. Hope that a lot of specialist will read this and give me good information :-)



greets

pep
 
hi there is no problem in if else usage mail me your qurrey

the general syntax is



if condition



else



endif



hope u know this

mail me your qurry for detailed reply
 
Also make sure your statement is not nested in anouther if statement. You can nest statements, but you need to tab them out so Pro knows how they read!
 
Also make sure your statement is not nested in anouther if statement. You can nest statements, but you need to tab them out so Pro knows how they read!



example



if value==100



if value2==50



else



endif



end if
 
My tabulation did not come through!!!! Imagine the underscores as spaces!



if value==100



__if value2==50



__else



__endif



end if
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top