THE FORUM IS IN READ-ONLY MODE
currency seprator
-
hi
i need to know how can do separate currency 0000 to 00,00
is it possible?
-
Name your Variuable to
currency
and paste this in your Config
make sure you paste it at the endIF "<currency>" GREATERTHAN "9999" FUNCTION Substring "0" "3" "<currency>" -> VAR "currency1" FUNCTION Substring "3" "2" "<currency>" -> VAR "currency2" ELSE FUNCTION Substring "0" "2" "<currency>" -> VAR "currency1" FUNCTION Substring "2" "2" "<currency>" -> VAR "currency2" ENDIF FUNCTION Constant "<currency1>,<currency2>" -> CAP "currency"
-
I don't think that's very fast. It would be better to just use function compute and divide by 100 ^_^
-
yes i agree with Ruri
i want fast one
Ruri can u give me example?!
-
FUNCTION Compute "<VALUE> / 100" -> VAR "NEWVALUE"
-
@Ruri i want use for list is it possible?!
-
FUNCTION Compute "<LIST[*]> / 100" -> VAR "NEWLIST"
-
This post is deleted!
-
#PRICE PARSE "<SOURCE>" LR ""totalPrice":" ","subTotalPrice" Recursive=TRUE -> VAR "PRICE"
FUNCTION Compute "<PRICE> / 100" -> VAR "PRICE"
OUTPUT:
<--- Executing Block PRICE --->
Parsed variable | Name: PRICE | Value: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 199, 0, 0, 149, 149, 149, 999, 199, 0, 0, 499, 199, 999, 499, 499, 199, 999, 999, 3265, 4354, 0, 0, 499, 1999, 999, 999, 1999, 1999, 149, 999, 499, 0, 149, 149, 999, 999, 1999, 149, 1999, 149, 149, 999, 999, 1999, 0, 0, 0, 0, 0, 0, 0, 99, 0, 0, 1999, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]<--- Executing Block FUNCTION --->
ERROR: Cannot find column [0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 199. 0. 0. 149. 149. 149. 999. 199. 0. 0. 499. 199. 999. 499. 499. 199. 999. 999. 3265. 4354. 0. 0. 499. 1999. 999. 999. 1999. 1999. 149. 999. 499. 0. 149. 149. 999. 999. 1999. 149. 1999. 149. 149. 999. 999. 1999. 0. 0. 0. 0. 0. 0. 0. 99. 0. 0. 1999. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0].i got error where is my problem?
-
why ..your parse is big
-
@ErbHosting I said you have to type
<PRICE[*]>
not just<PRICE>
. Did you even read it?
-
sorry im totally weak for work with array
tnx alot