Hey guys,
i guess its a pretty easy solution but i can't figure it out at the moment.
Im trying to link two strings with "or" |.
Example:
I got a door opening with numpad 0, one ranger infront and one behind it, with steamid outputs.
My E2 chip is looking something like that:
Code:
@inputs A:string B:string (The steamid strings)
@outputs C
X = "My_STEAMID"
Y = "Friends_STEAMID"
if ((A|B)==(X|Y))
{
C=1
} else
{
C=0
} What im trying to achieve:
If string A OR string B equal to string X OR string Y then open door
Ovbiously it didnt work, so how do i connect strings with an or?
When doing A|B the output is 1, but thats actually not what im trying to do ^^
any ideas?
i guess i could workaround using if((A=X)|(A=Y)|(B=X)|(B=Y)) etc, but thatd be pretty unfavorable with more than 2 strings
thanks in advance
Hexo
-edit Just found the E2 help subforum, sorry for wrong forum post, move please if neccessary
Bookmarks