Welcome Guest, please sign in to participate in a discussion. | Search | Active Topics | |
Registered User Joined: 1/28/2008 Posts: 7
|
Support,
In TC2007 (PCFs), is it possible to program a PCF with some conditional processing like :
IF (condion-A)
return 1
ELSE
return 0
Any insights/workarounds are appreciated.
|
|
Administration
Joined: 9/30/2004 Posts: 9,187
|
Might be possible if you provide a specific example of what you're looking for.
ABS(C>C1) + 1, for example, returns a value of 2 when C>C1 is True.
|
|
Registered User Joined: 1/1/2005 Posts: 2,645
|
QUOTE (traderlees) In TC2007 (PCFs), is it possible to program a PCF with some conditional processing like :
IF (condion-A)
return 1
ELSE
return 0
traderlees,
Yes. A PCF of the form:
ABS( A )
always returns 1 when A returns True and returns 0 when A returns False.
Thanks,
Jim Murphy
|
|
Registered User Joined: 1/28/2005 Posts: 6,049
|
You may be interested in this:
Thanks
diceman
|
|
Guest-1 |