Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I thought this would be pretty easy, but somehow I am stuck. I want to be able to select the desired vVariante by simple removing the comment in order to switch between RealLife, Prototyp and Version 1. And then the variables vZahlungen and vGebühren shall be set so that I can use the correct ones when loading my files. Nevertheless it does not work. When I create a textbox with $(vVariante ) it is empty.
//Set vVariante = 'RealLife';
Set vVariante = 'Prototyp';
//Set vVariante = 'Version 1';
If $(vVariante) = 'RealLife' Then
Set vZahlungen = 'Zahlungen';
Set vGebühren = 'Gebühren';
ElseIf $(vVariante) = 'Prototyp' Then
Set vZahlungen = 'Zahlungen Prototyp';
Set vGebühren = 'Gebühren Prototyp';
ElseIf $(vVariante) = 'Version 1' Then
Set vZahlungen = 'Zahlungen Var 1' ;
Set vGebühren = 'Gebühren';
Else
Set vZahlungen = 'not available' ;
Set vGebühren = 'not available';
End If;
What do I do wrong?? Thank you
//Set vVariante = 'RealLife';
Set vVariante = 'Prototyp';
//Set vVariante = 'Version 1';
If '$(vVariante)' = 'RealLife' Then
Set vZahlungen = 'Zahlungen';
Set vGebühren = 'Gebühren';
ElseIf '$(vVariante)' = 'Prototyp' Then
Set vZahlungen = 'Zahlungen Prototyp';
Set vGebühren = 'Gebühren Prototyp';
ElseIf '$(vVariante)' = 'Version 1' Then
Set vZahlungen = 'Zahlungen Var 1' ;
Set vGebühren = 'Gebühren';
Else
Set vZahlungen = 'not available' ;
Set vGebühren = 'not available';
End If;
You should be referencing the variable encased in quotes so it is used as a string. I recommend using Debug mode to test this sort of thing:
//Set vVariante = 'RealLife';
Set vVariante = 'Prototyp';
//Set vVariante = 'Version 1';
If '$(vVariante)' = 'RealLife' Then
Set vZahlungen = 'Zahlungen';
Set vGebühren = 'Gebühren';
ElseIf '$(vVariante)' = 'Prototyp' Then
Set vZahlungen = 'Zahlungen Prototyp';
Set vGebühren = 'Gebühren Prototyp';
ElseIf '$(vVariante)' = 'Version 1' Then
Set vZahlungen = 'Zahlungen Var 1' ;
Set vGebühren = 'Gebühren';
Else
Set vZahlungen = 'not available' ;
Set vGebühren = 'not available';
End If;
You should be referencing the variable encased in quotes so it is used as a string. I recommend using Debug mode to test this sort of thing:
Hi, referencing the variable encased in quotes was doing the trick. I tried debug mode but and saw that the variable was not set but couldn't understand why. Thank you for your help!
I've made this mistake more than a few times in the past, so I've learned to notice the color highlighting here as an immediate "This is acting like a field instead of a string" telltale.