Error or intention?

0
I maybe  found an bug in the modeller, where should i put that? I change  string like this: $Cohort/startjaar - 2000 + $Jaar_Opl_Cohort/Leerjaar-1 + '-' + 'D' + toString($Jaar_Opl_Cohort/Leerjaar) + '-' + $Opleiding/KorteCode + toString($Jaar_Opl_Cohort/Leerjaar) The first part is a simple calculation, output will be an integer but modeller does not give an errorโ€ฆ Or will it automatically concert integer to string? It should be I think    toString($Cohort/startjaar - 2000 + $Jaar_Opl_Cohort/Leerjaar-1) + '-' + 'D' + toString($Jaar_Opl_Cohort/Leerjaar) + '-' + $Opleiding/KorteCode + toString($Jaar_Opl_Cohort/Leerjaar)      
asked
2 answers
0

My Java is a bit rusty but I believe this is syntactically correct: the number will be calculated and the string will be concatenated to the outcome

EDIT: meaning it’s not a bug :) you can file a ticket if you don’t agree though ;)

answered
0

The modeler converts integers and decimals to string automatically if you add them up to a string or vice-versa.

Hope this helps

answered