The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
Hi all,
I've attempted to concatenate two THIS_SCRIPTs like this HTML Code:
<if condition="THIS_SCRIPT != 'subscription' or THIS_SCRIPT != 'search'">
Is that the correct way? --------------- Added [DATE]1333234232[/DATE] at [TIME]1333234232[/TIME] --------------- For some strange reason i changed it to this HTML Code:
<if condition="THIS_SCRIPT != 'subscription' AND THIS_SCRIPT != 'search'">
|
#2
|
|||
|
|||
![]()
If you think about it, since it can't be both 'subscription' and 'search' at the same time it's always going to be != to one of them, so in your first example the condition will always be true.
|
#3
|
||||
|
||||
![]()
Doh!, it was approaching midnight here when i was attempting it, thanks for the explanation.
|
#4
|
|||
|
|||
![]()
I'm also going to add this has nothing to do with string concatenation- or any form of concatenating.
What you're doing is simple expression evaluating with comparison operators. And lastly, what exactly are you trying to do? ![]() |
#5
|
||||
|
||||
![]()
Well, that depends how you read it, to concatenate means to link or join together, so yes it is concatenating as i wanted to "join" two THIS_SCRIPTs.
As for what i'm trying to acheive, i wanted to only show a variable for all pages except "subscription" and "search ![]() The second part of my message shows that i've done that, it was really late when i first posted, i then thought i'll just try the AND operator and it worked, i wasn't thinking too clearly at the time, KH99 pointed out why, i should have seen it really. |
#6
|
|||
|
|||
![]()
Okay. Glad you got it worked out. But that's still not concatenation.
![]() |
#7
|
||||
|
||||
![]()
Exactly. Not in the true sense, anyway.
|
#8
|
|||
|
|||
![]() Quote:
I agree with that. What Pandemikk is talking about is string concatenation (which *is* what is normally meant by concatenation when you're talking programming) but that doesn't mean you couldn't use that word for what you're doing. I knew what you meant. ...and I didn't mean to imply that you hadn't thought about it, I guess what I meant to say was "If you think about it like this...". |
#9
|
||||
|
||||
![]() Quote:
![]() |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|