[Talossa.com portal]
[Citizens Toolbox]
[Immigration]
No Running elections

Parent message
Mr. Furxheir, R.M.W.February 17, 2005 - 10:48
AGGGGGGGGGGGH!(#1110), posted by Justice dal Navâ, [IP Hidden], February 17, 2005 - 17:58. Viewed 723 times.
User InfoText
Justice dal Navâ
Group: admins
(5222 posts total)
(last post: March 14, 2008 - 13:43)
Citizen #2:
Chris Gruber
>
> > if ((elapsed_days <= X) && ((quorum_reached == 0)||((quorum_reached == 1) && (24_hours_passed_since_quorum == 0))))
> > continue_voting ();
> > else
> > announce_results();

> >
> > because in your algorithm quorum_reached == 0 would mean that the result of the whole boolean expression is 0 ("FALSE"), thus announce_results() would have to be performed. ;-)
>
>
> Actually, this is even better :
>
> if ( elapsed_days <= X || quorum_reached == 0 || 24_hours_passed_since_quorum == 0 )
> {
> continue_voting ();
> }
> else
> {
> announce_results();
> }

NERD OVERLOAD! ARGH!


--------------------------------------
E isc al Arendra del Bún Úr. Fáden es fóclan gleðen fer brach. El Bún Úr fólat ëtfin cún sino synt prepar. Cún þis paset, þa omin isc fólen. Es lyþ was sár. -- vól Cúliðlaþ

Chirischtôval Curt Cavéir,
Dean of the Republic of Talossa

AGGGGGGGGGGGH!Justice dal NavâFebruary 17, 2005 - 17:58
D. N. VercáriâFebruary 18, 2005 - 03:31
Justice dal NavâFebruary 18, 2005 - 07:20
Back to the forum | Forums Overview| Activate Thread View
Forums Overview | Login | Register | Lost your password? Cyphor (Release: 0.19, PHP 5.2.5)