Values in XML

FSSC, Airport 2.*, CfgEdit, etc. Get to grips with designing Scenery & Panels here!

Values in XML

Postby gr31 » Mon Jul 24, 2006 12:08 am

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
User avatar
gr31
2nd Lieutenant
2nd Lieutenant
 
Posts: 95
Joined: Thu Jul 15, 2004 10:36 am

Re: Values in XML

Postby garymbuska » Mon Jul 24, 2006 9:48 am

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)
Gary M Buska
SYSTEM Specs ASUS P8Z68 V/GEN 3 mother board: INTELL I7 2600k 3.48 ghz Quad core CPU with Sandy bridge: 12 Gigs of 1800hz ram:
GTX 950 OVER CLOCKED: 2 Gigs Ram Windows 10 Home 64 bit Operating system. 750W Dedicated modular power supply. Two Internal 1TB hard drives 1 External 1TB 3.2 USB hard drive. SAITEK Cessna flight Yoke with throttles.
CH Rudder Peddles 27 inch Wide screen Monitor
User avatar
garymbuska
Major
Major
 
Posts: 4415
Joined: Tue Dec 30, 2003 11:10 am
Location: Jacksonville, Florida

Re: Values in XML

Postby dsdawson » Mon Jul 24, 2006 10:44 am

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

Doug
dsdawson
Ground hog
Ground hog
 
Posts: 26
Joined: Sun Feb 12, 2006 6:33 pm

Re: Values in XML

Postby Travis » Mon Jul 24, 2006 7:06 pm

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.
Image
User avatar
Travis
Major
Major
 
Posts: 4381
Joined: Thu Feb 06, 2003 3:17 am
Location: KAUS - 30 MI NW

Re: Values in XML

Postby gr31 » Tue Jul 25, 2006 9:51 am

Thanks guys! Doug, the "abs" does work. You can use " (A:Some_Variable, number) abs "
Last edited by gr31 on Thu Jul 27, 2006 8:25 pm, edited 1 time in total.
Snakedriver 70/71
User avatar
gr31
2nd Lieutenant
2nd Lieutenant
 
Posts: 95
Joined: Thu Jul 15, 2004 10:36 am


Return to Scenery & Panel Design

Who is online

Users browsing this forum: No registered users and 330 guests