What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

HTML version of |?

AutomaticCoding

New Member
Joined
Dec 20, 2011
Messages
1,091
Reaction score
1
I just guess in the xml profiles | means "Or" (like "true | false" would return true, because one is true, while: "true & false" would return false because they're both not true) and it QQs at me when I use "&" and not "&&", so, what's the HTML value of "|"/"Pipe"?
 
Worked it out, you can junk this thread. Thanks!

PHP:

Replies 1 and 3.
 
Last edited by a moderator:
Worked it out, you can junk this thread. Thanks!

PHP:

Replies 1 and 3.

you gotta use php, not code here... i tried to change it for u, but i guess the 'new' forums don't save it anymore

i dunno about the html version of OR, but XML it's ||

&& = &
|| = |
^^ = ^ (either)
' = ' (but our xml doesn't care about apostrophes - only quotes)
"name here" (but if you're trying to run a macro - just use the ' instead of ")
== is =
> is >
< is <
>= is >=
<= is <=

sigh, our forums auto convert stuff over

PHP:
& amp ; & amp ;
||
^^
& apos ;
& quot ;
==
& lt ;
& gt ;

just take out the spaces ;)
 
Last edited:
you gotta use php, not code here... i tried to change it for u, but i guess the 'new' forums don't save it anymore

i dunno about the html version of OR, but XML it's ||

&& = &
|| = |
^^ = ^ (either)
' = ' (but our xml doesn't care about apostrophes - only quotes)
"name here" (but if you're trying to run a macro - just use the ' instead of ")
== is =
> is >
< is <
>= is >=
<= is <=

sigh, our forums auto convert stuff over

PHP:
& amp ; & amp ;
||
^^
& apos ;
& quot ;
==
& lt ;
& gt ;

just take out the spaces ;)

But, am I incorrect in thinking that == does not mean "compare"? = in programming languages means "assign" while == means "compare".

Like:

int x = 5;
if((x = 3) == 3) {
//code to always execute
}

Would always execute, because, you set "x" as 5 then set it to 3 inside the if statement then compare it to 3, if I did:

int x = 5;
if((x == 3) = 3) {
//Wouldn't even get here.
}

It'd define x as 5, then, compare it to 3 so it'd now be:

if(true = 3) {\t}

And that'd throw an error because you can't define a static boolean as a static integer.

Anyway, thanks. I'll use "&&" from now on instead of "&amp&amp".
 
i dunno about all that, i don't mess with C#, just xml ;)
 
i dunno about all that, i don't mess with C#, just xml ;)

Ahh, shame. Oh well, thanks for the help.

P.S. The above was not C#, it can be used in C# but it's really any programming language (and ALOT of scripting languages as-well) like java/C++/C#
 
= is a set syntax. (a = 3)
== is a comparison syntax. (if (a == b))

&& is a "extra" comparison. (if (a == b && a != 3))
|| is an "or" comparison (if (a == b && (a != 3 || a != 1)))

& is a bitwise "AND"
| is a bitwise "OR"
^ is a bitwise "XOR"

If you need to figure out how to encode strings for XML attributes, you can use the following site: Online string encoder/decoder - Base64, URL, XML - Coder?s Toolbox

When writing profiles, we suggest people not use bitwise operators (even if they're faster, and you may know how to use them). 99% of the community here doesn't really know how they work, so it'll only make it harder for users to make any edits. (And a pain for you to support said edits from users)
 
Back
Top