The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I want a bit of code to run if $HD is set, $VD is also set, and $TD is NOT set.
Is there an easy way to do this? I'm guessing it would be somthing like: PHP Code:
thanks, Nick |
#2
|
||||
|
||||
![]()
More like ;
PHP Code:
|
#3
|
|||
|
|||
![]()
Thanks
![]() Is this valid code to set $C equal to $A squared plus $B squared? PHP Code:
|
#4
|
||||
|
||||
![]()
Um, did you mean set $C to the Square Root of $A squared plus $B squared
![]() |
#5
|
|||
|
|||
![]()
yeah, that was a typo...
I'm trying to calculate pythagreom therum. (sp?) |
#6
|
||||
|
||||
![]()
Then yes, it looks valid.
|
#7
|
||||
|
||||
![]()
Yep! Personally I would pow(X, 2) to square it, but that doesn't matter. I gave it a trial run with 3, 4, and 5:
PHP Code:
|
#8
|
|||
|
|||
![]()
Thanks
![]() Do you know if there's a command to check and see if any two variables out of a whole bunch of them isset? |
#9
|
||||
|
||||
![]()
I highly doubt there is, but here is a quick one I wrote:
PHP Code:
|
#10
|
|||
|
|||
![]()
Thanks.
Does this work: PHP Code:
|
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|