Announcement: Remember: you are giving away your fantastic ideas for free, and somebody else might even make money from them (or appear to). That's just how the world works! If you're worried about it, maybe you shouldn't post your ideas here.


Caravel Forum : DROD Boards : Feature Requests : "And" & "Or" command in scripting (It's so close to programming. Let's close the gap!)
New Topic New Poll Post Reply
Poster Message
Monkey
Level: Master Delver
Avatar
Rank Points: 190
Registered: 03-21-2006
IP: Logged
icon "And" & "Or" command in scripting (0)  
When I was editing, I wanted to make it so that you have to meet 2 or more properties in order to activate something, or just need to have 1 of the 2 to activate, without long lines of code. So I thought of the "And" & "Or" command, great for scripting. Support appreciated and downsides overlooked. Please take into view this!

Edit: Heh heh. I now look at this, and I have to laugh silently at the "downsides overlooked" part. :D

____________________________
lurking

[Last edited by Monkey at 04-02-2008 10:43 PM]
04-20-2007 at 11:16 PM
View Profile Send Private Message to User Show all user's posts This architect's holds Quote Reply
Briareos
Level: Smitemaster
Avatar
Rank Points: 3516
Registered: 08-07-2005
IP: Logged
icon Re: "And" & "Or" command in scripting (+1)  
Monkey wrote:
So I thought of the "And" & "Or" command, great for scripting.
Well, And is actually the same as 2 nested Ifs, and Or is an If with another If nested in the Else part of the first one - but the nesting (end duplicated code in the Or case) can get nasty and it's not very readable, I agree.

But I believe I remember that this feature request already came up in another thread...

np: Jel - Sweet Cream In It (Soft Money)


____________________________
"I'm not anti-anything, I'm anti-everything, it fits better." - Sole
R.I.P. Robert Feldhoff (1962-2009) :(

[Last edited by Briareos at 04-21-2007 10:05 AM]
04-21-2007 at 12:06 AM
View Profile Send Private Message to User Send Email to User Visit Homepage Show all user's posts Quote Reply
New Topic New Poll Post Reply
Caravel Forum : DROD Boards : Feature Requests : "And" & "Or" command in scripting (It's so close to programming. Let's close the gap!)
Surf To:


Forum Rules:
Can I post a new topic? No
Can I reply? No
Can I read? Yes
HTML Enabled? No
UBBC Enabled? Yes
Words Filter Enable? No

Contact Us | CaravelGames.com

Powered by: tForum tForumHacks Edition b0.98.9
Originally created by Toan Huynh (Copyright © 2000)
Enhanced by the tForumHacks team and the Caravel team.