IMPORTANT:
this is not a Support Forum! Experienced users might answer from time to time questions posted here. If you need a professional and reliable answer, or if you want to report a bug, please contact Altova Support instead.

How to use if-then-else in XBRL Formula ? Options · View
aSAPlover
Posted: Saturday, November 1, 2014 3:15:35 AM
Rank: Newbie

Joined: 3/4/2013
Posts: 8
Hi,

I am using XMLSpy to create Formula Linkbase.


Problem 1:


I have created the following value assertion formula:

if ($varZB='1') then $varTax =1000 else $varTax = 2000


Goal:
1. This formula will check the value of element called ZB.
2. If the element value = 1 then element Tax value should be 1000,
if else then the value of tax should be 2000
3. I created both unsatisfied and satisfied message

I save the formula and no error is found (valid)

However, When I execute the formula, No message I can get. Unsatisfied and satisfied messages are blank.


Somebody please help.




Problem 2:

How to create if-then-else which has more than 1 line... like the following example:

If $Ba= 123 then
$var1 = 1
$var2 = 1
$var3 = 1
$var4 = 1
else
$var1 = 2
$var2 = 2
$var3 = 2
$var4 = 2
end if


========================

THANKS for help


Users browsing this topic
guest

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Use of the Altova User Forum(s) is governed by the Altova Terms of Use.