Ford, Your expression is fine except for an extra parenthesis.
"(A=1..." should be "A=1.."
Tim
On 8/18/2010 3:26 AM, Pierrick Hanlet wrote:
Hello,
I don't understand the online documentation regarding the string output of sCalcout. I want to write
a string based on the results of a calculation. Ex:
record(scalcout,"myrecord")
field(INPA,"xxx")
field(INPB,"yyy")
field(CALC,"(A=1&&B=0?1:A=0&&B=1?0:-1")
What I would really like is
field(INPA,"xxx")
field(INPB,"yyy")
field(INAA,"Good")
field(INBB,"Bad")
field(INCC,"Ugly")
field(CALC,"(A=1&&B=0?AA:A=0&&B=1?BB:CC")
What is the correct syntax for affecting this?
Thanks in advance,
Pierrick
-----------------------------------------------------------------------------------------
Pierrick Hanlet
Fermilab, P.O. Box 500, M.S. 122
Batavia, IL 60510
[email protected]
(630)840-5555/8871/6039 office/lab/fax
http://www-d0.fnal.gov/~hanlet
"Whether you think you can or think you can't, either way, you are correct" -- Henry Ford
--
Tim Mooney ([email protected]) (630)252-5417
Software Services Group, Advanced Photon Source, Argonne National Lab.
- References:
- sCalcout Pierrick Hanlet
- Navigate by Date:
- Prev:
Re: sCalcout Kurt Goetze
- Next:
Re: sCalcout emmanuel_mayssat
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
<2010>
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
RE: sCalcout - again peter.owens
- Next:
JCA2 question Michael Oothoudt
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
<2010>
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|