Question
Evonsys (PVT) LTD
Evonsys (PVT) LTD
LK
Evonsys (PVT) LTD
Posted: Jul 24, 2022
Last activity: Aug 2, 2022
Last activity: 2 Aug 2022 2:50 EDT
Closed
Solved
Problem in Decision Tree
Hey Guys how can I return a value in the decision tree with a small percentage calculation with a property? I did like this below but got an error. (I need this calculation .CurrentValue * 4%)

***Edited by Moderator: Pooja Gadige to add capability tag***
To see attachments, please log in.
@MohamedAkeel
Its not possible to use % symbol directly in the decision tree. You can follow this approach. You can use the divide function in the return area. Lets say you want to multiply the current value with 4% then you can do like (.currentvalue * (@divide(4,100)). The advantage of using the divide function is it returns the decimal value (4/100=0.04). If you use the normal expression like (.currentvalue * (4/100) it returns the value as zero because (4/100) always returns non-decimal value which is zero.