English Amiga Board Basic program prob
 Register Amiga FAQ Rules & Help Members List  /  Moderators List Today's Posts Mark Forums Read

 28 September 2016, 17:38 #1 alphagemini Registered User   Join Date: Nov 2011 Location: Folkestone, Kent Posts: 119 Basic program prob I am using basic to write a program and have encountered a problem. I need to use many 'and' 'or' statements and have run out of sufficient line length. Does anyone know how to increase usable line length or continue condition statements onto the next line? thanks in advance
 28 September 2016, 18:39 #2 Sinphaltimus Registered User   Join Date: Aug 2016 Location: Cresco, PA, USA Age: 48 Posts: 1,092 Couldn't you use more than one statement? If the condition is true up to a point then it's ok to continue the check on another line, if the condition is false anywhere in the first statement then no need to check the second because you've hit your else condition.
 29 September 2016, 17:19 #3 Dan Registered User   Join Date: Nov 2004 Location: Germany Posts: 421 Can you give us an example of what you are trying to do ? Here is an example of what you can do, its not the amiga basic syntax but you can get the Idea. Code: ```If (x=50 and y=70 and mousebutton=1) or (x=70 and y=80 and mousebutton=1) or (x=110 and y=200 and mousebutton=1) ...code EndIf``` In case they need to do all the same thing,then you can split it into following: Code: ```If mousebutton=1 If x=50 and y=70 then check=1 if x=70 and y=89 then check=1 if x=110 and y=200 then check=1 (here you can use as many if's as you need) EndIf If check=1 ...code check=0 EndIf``` of course there are many ways to write this, so an example is needed with an explanation of what should be checked.

 Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 Similar Threads Thread Thread Starter Forum Replies Last Post SkulleateR Retrogaming General Discussion 6 10 February 2016 00:58 xxxxx support.WinUAE 10 19 February 2013 10:27 ricky500 request.Apps 20 12 February 2013 22:06 keitha1200 Coders. Language 29 04 October 2012 01:08 alphagemini Coders. General 6 05 August 2012 19:00

 Posting Rules You may not post new threads You may not post replies You may not post attachments You may not edit your posts BB code is On Smilies are On [IMG] code is On HTML code is Off Forum Rules
 Forum Jump User Control Panel Private Messages Subscriptions Who's Online Search Forums Forums Home News Main     Amiga scene     Retrogaming General Discussion     Nostalgia & memories Support     New to Emulation or Amiga scene         Member Introductions     support.WinUAE     support.WinFellow     support.OtherUAE     support.FS-UAE         project.AmigaLive     support.Hardware         Hardware mods         Hardware pics     support.Games     support.Demos     support.Apps     support.Amiga Forever     support.Amix     support.Other Requests     request.UAE Wishlist     request.Old Rare Games     request.Demos     request.Apps     request.Modules     request.Music     request.Other     Looking for a game name ?     Games images which need to be WHDified abime.net - Hall Of Light     HOL news     HOL suggestions and feedback     HOL data problems     HOL contributions abime.net - Amiga Magazine Rack     AMR news     AMR suggestions and feedback     AMR data problems     AMR contributions abime.net - Home Projects     project.Amiga Lore     project.EAB     project.IRC     project.Mods Jukebox     project.Wiki abime.net - Hosted Projects     project.aGTW     project.APoV     project.ClassicWB     project.Jambo!     project.Green Amiga Alien GUIDES     project.Maptapper     project.Sprites     project.WinUAE - Kaillera Other Projects     project.Amiga Demo DVD     project.Amiga Game Factory     project.CARE     project.EAB File Server     project.CD32 Conversion     project.Game Cover Art         GCA.Feedback and Suggestions         GCA.Work in Progress         GCA.Cover Requests         GCA.Usefull Programs         GCA.Helpdesk     project.KGLoad     project.MAGE     project.Missing Full Shareware Games     project.SPS (was CAPS)     project.TOSEC (amiga only)     project.WHDLoad         project.Killergorilla's WHD packs Misc     Amiga websites reviews     MarketPlace         Swapshop     Collections     EAB's competition Coders     Coders. General         Coders. Releases         Coders. Tutorials     Coders. Asm / Hardware     Coders. System         Coders. Scripting         Coders. Nextgen     Coders. Language         Coders. C/C++         Coders. AMOS         Coders. Blitz Basic     Coders. Contest         Coders. Entries Off Topic     OT - General     OT - Entertainment     OT - Sports     OT - Technical     OT - Gaming

All times are GMT +2. The time now is 21:37.

 -- EAB3 skin ---- EAB2 skin ---- Mobile skin Archive - Top