- Joined
- Oct 25, 2006
- Messages
- 1,550
- Reaction score
- 15
- Points
- 38
Yes JJ I searched, I couldn't find any definitive answers so Im posting, get over it! (j/k hehe but I know what your gonna say when you respond)
Ok now that the JJ disclaimer is out of the way, I've got a couple of noob coding questions that have been bugging me.
First off dealing with /if conditions. Is there anyway to group conditions in an /if statement... for example I'm a native VB coder, how would I duplicate (or can I duplicate) something like this
I know the syntax conversions, but this does not seem to work
For now I've just been nesting two different /ifs, but I like to be as efficient as possible in my coding, so if there is a way to do things of this nature on one line instead of two, that would be awesome!
Next up is there a Select Case type thing in MQ? I think in c++ it's called Switch but not 100% on that.
Example VB:
Again here I've been doing it with nested /ifs, else /ifs... but if there is a way to optimize it I'd really like to know.
Thanks for any help!
Ok now that the JJ disclaimer is out of the way, I've got a couple of noob coding questions that have been bugging me.
First off dealing with /if conditions. Is there anyway to group conditions in an /if statement... for example I'm a native VB coder, how would I duplicate (or can I duplicate) something like this
Code:
If varATrue And (varBTrue Or varCTrue) Then
...
End If
I know the syntax conversions, but this does not seem to work
Code:
/if (${varATrue} && (${varBTrue} || ${varCTrue})) {
...
}
For now I've just been nesting two different /ifs, but I like to be as efficient as possible in my coding, so if there is a way to do things of this nature on one line instead of two, that would be awesome!
Next up is there a Select Case type thing in MQ? I think in c++ it's called Switch but not 100% on that.
Example VB:
Code:
Select Case
Case 1
Case 2
Case 3
End Select
Again here I've been doing it with nested /ifs, else /ifs... but if there is a way to optimize it I'd really like to know.
Thanks for any help!