Search the archive:
YaBB - Yet another Bulletin Board
 
   
 
Page Index Toggle Pages: 1
Send Topic Print
Values in XML (Read 217 times)
Jul 24th, 2006 at 1:08am

gr31   Offline
Colonel

Posts: 95
*****
 
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
 

Snakedriver 70/71
IP Logged
 
Reply #1 - Jul 24th, 2006 at 10:48am

garymbuska   Offline
Colonel
I would rather be flying
Jacksonville, Florida

Gender: male
Posts: 2850
*****
 
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)
 
IP Logged
 
Reply #2 - Jul 24th, 2006 at 11:44am

dsdawson   Offline
Colonel
I love YaBB 1G - SP1!

Posts: 26
*****
 
I think it should be as simple as
(L:some_variable, number) abs (>L:some_variable, number)

Doug
 
IP Logged
 
Reply #3 - Jul 24th, 2006 at 8:06pm

Travis   Offline
Colonel
Cannot find REALITY.SYS.
Universe halted.
Dripping Springs, TX

Gender: male
Posts: 4515
*****
 
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.
 

...
IP Logged
 
Reply #4 - Jul 25th, 2006 at 10:51am

gr31   Offline
Colonel

Posts: 95
*****
 
Thanks guys! Doug, the "abs" does work. You can use " (A:Some_Variable, number) abs "  to return the absolute values of any of the variables.
« Last Edit: Jul 27th, 2006 at 9:25pm by gr31 »  

Snakedriver 70/71
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print