Problem with setting a value in an If statement

Inkognito

Registered User.
Local time
Today, 13:53
Joined
Apr 4, 2008
Messages
43
Hi there!:cool:

I am trying to use an If sentence to determine whether a combinationbox is "Bestilling" or "Bestilling_ut" and then set a variable to one of two values.

If Kombinasjonsboks11 = "Bestilling" then forlag = Landsetting
If Kombinasjonsboks11 = "Bestilling_ut" then forlag = Sjosetting

But this isn't working, 'forlag' isn't set to anything at all.:(

I have tried different approaches, using a text field instead of a variable and spreading the if sentence on several lines with endif etc, but nothing seem to be working.:confused:
I really need this to finish my form.

Any help?
 
Maybe your logic is thinking Landsetting and Sjosetting are variables (and maybe they are?)?

Maybe:

If Kombinasjonsboks11 = "Bestilling" then forlag = "Landsetting"
If Kombinasjonsboks11 = "Bestilling_ut" then forlag = "Sjosetting"
 
Absolutely perfect! :D

Thx :)
 

Users who are viewing this thread

Back
Top Bottom