I like and use end if #some complicated condition On Thu, Aug 10, 2017 at 10:02 PM, Monte Goulding via use-livecode < [email protected]> wrote:
> > > On 11 Aug 2017, at 11:54 am, Mark Wieder via use-livecode < > [email protected]> wrote: > > > > What would you put as a comment after the 'end if' using your proposed > approach? The original comment for the 'if' statement or something else? > Would you force the user to create comments for each 'else if' as well? > > I’m not sure if I proposed anything… was just wondering out loud… but yes > I think if a tag approach is used then > > if some complicated condition then # commontag > > else if some other complicated condition then # commontag > > else if some yet again complicated condition then # commontag > > else # commontag > > end if # commontag > > Now you would know no matter how much spaghetti you write or how > complicated your conditions are which control structure each if/else > if/else/end if belongs to. > > Cheers > > Monte > _______________________________________________ > use-livecode mailing list > [email protected] > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." _______________________________________________ use-livecode mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
