Search found 6 matches

by mermuseBUSjpzh
Sun Apr 07, 2013 3:03 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Need help with if/then hierarchy
Replies: 12
Views: 6655

Re: Need help with if/then hierarchy

Interesting... it looks like the resolution charts used in hex and counter war games!

This method looks very useful for more complex and irregular systems.
Thank you for so generously sharing your time and knowledge.
by mermuseBUSjpzh
Sun Apr 07, 2013 2:30 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Need help with if/then hierarchy
Replies: 12
Views: 6655

Re: Need help with if/then hierarchy

Yes I'd love to see an example of a lookup table. I've been doing a lot of tutorials but I really want to get the big picture of what tools work best for different types of logic checks . I've seen "switch" used many times before but never understood what was going on until now. The conditional appr...
by mermuseBUSjpzh
Sun Apr 07, 2013 1:43 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Need help with if/then hierarchy
Replies: 12
Views: 6655

Re: Need help with if/then hierarchy

Wow the switch is powerful... I like that it also has a default function if none of the cases are true. It seems like a much better fit for what I'm trying to do. I tried your code and it worked well except that it didn't deal with the values being equal so I added one more case at the end that says...
by mermuseBUSjpzh
Sat Apr 06, 2013 11:08 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Need help with if/then hierarchy
Replies: 12
Views: 6655

Re: Need help with if/then hierarchy

Thanks Sturgis, -The results are checked in a specific order. The offense is always checked first and if the result is a bust or a touchdown (perfect 21) then the defenses total doesn't matter. If the offense is over 21 then the defense succeeds. -The defense must beat the offenses total to stop the...
by mermuseBUSjpzh
Sat Apr 06, 2013 9:08 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Need help with if/then hierarchy
Replies: 12
Views: 6655

Re: Need help with if/then hierarchy

I changed to two separate statements and it works but I don't understand why I need to use two end if's. How to make this simpler and more elegant? ... if tEndDrive > tDEndDrive then if tEndDrive > 21 then put tEndDrive & " / " & tDEndDrive & " = " & "fumble (turnover)" into field "result" if tEndDr...
by mermuseBUSjpzh
Sat Apr 06, 2013 8:44 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Need help with if/then hierarchy
Replies: 12
Views: 6655

Need help with if/then hierarchy

I need some help with complex if/then hierarchy. I'm trying to turn one of my card game designs into an app but I haven't found a good breakdown of how to organize complex if/then/else statements. Here's my problem... I'm comparing the sum of the two opponents cards for the turn. The basic logic is ...