# vrf VEE's built in True and False constants ??? (Was Wh at's up with Arrays?)

Question asked by VRFuser on Nov 4, 2004
Hey guys,

this can either be philosophical, mathematical, or simply gibberish.  True,
since we have no theory for the value of truth, the measured value for
truth, 1 or 0, or vice/versa is an axiom.  Why not have truth defined as a
complex tensor.  This way we include everything, even the truth value of
nonsense instead of just those statements that are true or false.

Ex.  This sentence is false.

Or

I am lying.

What's the value for truth of those?

rufus

-----Original Message-----
From: Shawn Fessenden [mailto:shawn@testech-ltd.com]
Sent: Thursday, November 04, 2004 11:30 AM
To: VRF
Subject: [vrf] RE: VEE's built in True and False constants ??? (Was Wh at's
up with Arrays?)

That's just twisted enough to make sense!

-----Original Message-----
From: Leysath, Bert [mailto:leysathb@tycoelectronics.com]
Sent: Thursday, November 04, 2004 10:22 AM
To: VRF
Subject: [vrf] RE: VEE's built in True and False constants ??? (Was Wh at's
up with Arrays?)

Shawn,

That's because TRUE & FALSE are logically SOMETHING and NOTHING. If the
abstract NOTHING is considered to be SOMETHING i.e., "A CONCEPT", perhaps
NOTHING (FALSE) could be the concept of ALMOST SOMETHING and SOMETHING
(TRUE) could be the concept of NEXT to NOTHING?

Bert

-----Original Message-----
From: Shawn Fessenden [mailto:shawn@testech-ltd.com]
Sent: Thursday, November 04, 2004 4:59 AM
To: VRF
Subject: [vrf] RE: VEE's built in True and False constants ??? (Was What's
up with Arrays?)

> TRUE and FALSE are really Int32 1 and 0 respectively.

Which is actually kind of perilous for comparing values. The boolean
expression (value == True) is only true if value is 1, but (value != False)
is true for all values of value except 0.

In practice, since VEE is basically a C application it seems reasonable to
assume that one can use C convention to test boolean expressions. That is,
any boolean test of a value is true unless the value is 0 (thinking mainly
of the Triadic expression and If/Then/Else object).

Different languages have different ways of handling this. If I remember
correctly, ANSI C says that:

#define FALSE 0
#define TRUE  (~FALSE)

So the value of TRUE is -1. This is the same in VB and VBA, though the size
of the values are different (32 bits vs. 16 bits respectively).

In general, you can always count on the value of False or FALSE being 0, but
True and TRUE are sometimes not what you expect. Amazing, isn't it?
-SHAWN-

---
You are currently subscribed to vrf as: leysathb@amp.com To subscribe send a
blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list,  email "vrf@agilent.com".
If you need help with the mailing list send a message to

---
You are currently subscribed to vrf as: shawn@testech-ltd.com To subscribe
send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list,  email "vrf@agilent.com".
If you need help with the mailing list send a message to

---
You are currently subscribed to vrf as: rwarren@amti.net To subscribe send a
blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list,  email "vrf@agilent.com".
If you need help with the mailing list send a message to

---
You are currently subscribed to vrf as: rsb@soco.agilent.com
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list,  email "vrf@agilent.com".
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".