join with conditions
i want a formula where i join a table to a text file, this i allready got working, but i want a condition where in the table i line is called "eis" i want a text with all the line with "eis" and a seperate text with where it isnt "eis"
if 'prijs' = "eis" then
var a := join(for p in range(0, cnt('prijs'.aantal)) do
item('prijs'.aantal, p) + " x " +
item('prijs'.omschrijving, p) +
" " +
item('prijs'.'totaal.calc', p)
end, ", ");
void
else
var b := join(for p in range(0, cnt('prijs'.aantal)) do
item('prijs'.aantal, p) + " x " +
item('prijs'.omschrijving, p) +
" " +
item('prijs'.'totaal.calc', p)
end, ", ");
void
end
10 replies
-
i tried with var and with let but doesnt seems to work
-
Can you provide the full code so we can get more information about what you want to achieve?
-
let a1 := "Verzekeringseis: ";
let a3 := "prijzen zijn excl. BTW";
a1 +
join(for p in range(0, cnt('prijsopgaaf offerte mail'.aantal)) do
item('prijsopgaaf offerte mail'.aantal, p) + " x " +
item('prijsopgaaf offerte mail'.omschrijving, p) +
" " +
item('prijsopgaaf offerte mail'.'totaal.calc', p)
end, ", ") +
a3this is the fullcode wich is working, but in my table i have for each item an extra selection a or b, and i want a string like i have but i want a string for all articles with a and a seperate string for all articles where selection is b
-
in the second line articles is B i ment eis is B
-
dank je voor de opzet geeft veel duidelijkheid, echter werkt de regel if item ...... = "A" niet , heb alles geprobeerd maar blijft alles van B weergeven ook al staat er een A
Content aside
- 10 mths agoLast active
- 10Replies
- 63Views
-
2
Following