Re: And/ Or in One
- Posted by Ricardo Forno <ricardoforno at tutopia.c?m> Jul 09, 2007
- 568 views
Juergen Luethje wrote: > > Andy wrote: > > > Is there a command in Euphoria that allows for the and/or command to be one. > > > > Like saying if event here then attack him and/or her. I hope I am making > > enough > > senese. Its it like xor or something. I'm sorry, if I'm confusing, but I'm > > trying > > to explain it as well. > > Euphoria has the following built-in logical operators: > and, or, xor, not > see <a > href="http://rapideuphoria.com/refman_2.htm#24">http://rapideuphoria.com/refman_2.htm#24</a> > > I don't know what your "and/or" should mean logically. > Maybe after reading this page > <a > href="http://en.wikipedia.org/wiki/Truth_table">http://en.wikipedia.org/wiki/Truth_table</a> > you can tell more precisely what you are looking for. > > Regards, > Juergen Hi Juergen. Euphoria has another built-in (hidden) logical operator when applied to Boolean data, although it does not have a bit level counterpart. It is "=", which amounts to "not xor". "!=" can also replace xor if used with Boolean data. Regards.