Author Topic: great, lower or equal  (Read 1349 times)

0 Members and 1 Guest are viewing this topic.

Offline pHaTTy

  • Forum Legend
  • ***
  • Posts: 1 916
  • Karma: +5/-1
great, lower or equal
« on: 31 January, 2004, 17:29:11 »
Hi there,,

got a question for greater or equal and below is it something like

if b1 => b2 or b1 <= b2 then

will that work for great lower or equal

=> and <= ???
Resistance is futile!

PtokaX forum

great, lower or equal
« on: 31 January, 2004, 17:29:11 »

Offline c h i l l a

  • Lord
  • ***
  • Posts: 347
  • Karma: +1/-0
(No subject)
« Reply #1 on: 31 January, 2004, 17:43:25 »
hmm you code works allways  change the or to and and you will only have equal.. I think...

Offline plop

  • Forum God
  • ****
  • Posts: 2 464
  • Karma: +37/-0
(No subject)
« Reply #2 on: 31 January, 2004, 17:46:24 »
if b1 and b2 then
it's always greater/equal or smaller unless it's nil, then it's nothing.
compairing with nil gives an error but it's avoided by this.

plop
« Last Edit: 31 January, 2004, 17:46:56 by plop »
http://www.plop.nl lua scripts/howto\'s.
http://www.thegoldenangel.net
http://www.vikingshub.com
http://www.lua.org

>>----> he who fights hatred with hatred, drives the spreading of hatred <----<<

PtokaX forum

(No subject)
« Reply #2 on: 31 January, 2004, 17:46:24 »