Using && in a UI Tooltip Reference.

Need help running MacroQuest2? Ask your questions about how to get things to work on your computer.

Moderator: MacroQuest Developers

No_Idea_At_All
a lesser mummy
a lesser mummy
Posts: 49
Joined: Sat Aug 07, 2004 11:28 pm

Using && in a UI Tooltip Reference.

Post by No_Idea_At_All » Sat Oct 28, 2006 3:38 am

[[Custom UIs]]
I have added in the section about Note to tooltipreference. My question is mainly about the & symbol that seems to be giving me a syntax error on loading the ui. Thought I would just add the bit in about the < symbol since over time I've seen a few questions crop up about it.

Example of a line I use it in

Code: Select all

<TooltipReference>${If[!${Me.Invis} && ${Me.CombatState.Equal[ACTIVE]},${Me.CleanName},]}</TooltipReference>
When loading the UI the Error comes out "[Line:190 Source:UIFiles\MQUI\EQUI_PlayerWindow.xml] ParseTag() Syntax Error"

Does anyone have any suggestions on how to get around this?
Thank you in advance.

No_Idea_At_All
a lesser mummy
a lesser mummy
Posts: 49
Joined: Sat Aug 07, 2004 11:28 pm

Post by No_Idea_At_All » Sat Oct 28, 2006 5:19 am

Nevermind, after a bit more thinking I slapped myself for not thinking of just nesting if statements.

Although still a good thing to have in the wiki.