POV-Ray : Newsgroups : povray.off-topic : Programming style question - specifically Python : Re: Programming style question - specifically Python Server Time
29 Jul 2024 14:23:04 EDT (-0400)
  Re: Programming style question - specifically Python  
From: nemesis
Date: 17 Aug 2011 13:12:24
Message: <4e4bf678$1@news.povray.org>
Shay escreveu:
> How would I best type the following:
> 
> if long_condition1 or (long_condition2 and long_condition3):
> 
> Without making a complete, unreadable mess.
> 
> some_name = long_conditionn # bool
> 
> will not work, because I can't evaluate long_condition2 if 1 is true.

what's the problem people have with parentheses?

-- 
a game sig: http://tinyurl.com/d3rxz9


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.