Page 1 of 1

Values in XML

PostPosted: Mon Jul 24, 2006 12:08 am
by gr31
Just wondering if a value (variable) in XML can be declared an "absolute value". The intent is to convert any negative number returned to a positive. Any ideas?

Ken

Re: Values in XML

PostPosted: Mon Jul 24, 2006 9:48 am
by garymbuska
In theroy it sounds good but I am not sure if it will work.
You can try to google the word XML and it should give you some sites to check out, you should be able to find your answers in one of the sites listed. Or maybe someone here will know for sure I have never tried that but like I said it sounds like it might but the syntax is the key. 8)

Re: Values in XML

PostPosted: Mon Jul 24, 2006 10:44 am
by dsdawson
I think it should be as simple as
(L:some_variable, number) abs (>L:some_variable, number)

Doug

Re: Values in XML

PostPosted: Mon Jul 24, 2006 7:06 pm
by Travis
I recommend a check at the FFDS forums.  They have an entire section in there devoted to XML creation.  Should be easy to get an answer; in fact, there probably already is one.

Re: Values in XML

PostPosted: Tue Jul 25, 2006 9:51 am
by gr31
Thanks guys! Doug, the "abs" does work. You can use " (A:Some_Variable, number) abs "