vk01 Posted October 30, 2007 Share Posted October 30, 2007 hi, I have a variable which should be equal to one value at a given time: likeif val1 != null var = val1elseif val2 != null var = val2elseif val3 != null var = val3else var = " "end if I know at a given time there will be only one value otherwise a null value. How would we go about doing this? thanks. Link to comment Share on other sites More sharing options...
svenn Posted October 30, 2007 Share Posted October 30, 2007 You could do it in a scriptlet or by placing conditional sections within conditional sections ( <condition> ? ( <condition> ? ( <condition> ? exp1 : exp2 ) : exp2 ) : exp2 ) etc Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now