Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
MythicMobs MythicMobs
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 140
    • Issues 140
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • MythicCraft
  • MythicMobsMythicMobs
  • Issues
  • #1506

Closed
Open
Created Feb 24, 2024 by IonTech@I0nTech

Variable Conditions (VariableIsSet, VariableEquals, VariableinRange, etc) do not correctly parse nested placeholders

Sorry about the previous issue - messed up that test case when debugging pretty badly. But this was the main issue I was attempting to debug.

test-conditions-cast:
  Skills:
  - skill{s=test-conditions-exec;id=tester} @self

test-conditions-exec:
  Skills:
  - setvariable{var=caster.<skill.id>;value="hello";type=STRING} @self
  - skill{s=test-conditions-eval} @self
  
test-conditions-eval:
  Conditions:
  - varisset{name=caster.<skill.id>} orelsecast test-conditions-notset
 # - varisset{name=caster.tester} orelsecast test-conditions-notset
  Skills:
  - message{m="Variable set, <caster.var.<skill.id>>"}

test-conditions-notset:
  Skills:
  - message{m="Variable not set, <caster.var.<skill.id>>"}

This will return Variable not set, even though caster.<skill.id> is set. However if instead I check for

  - varisset{name=caster.tester}

which should be equal to

  - varisset{name=caster.<skill.id>} 

I get Variable set.

This is also the case for the other variable placeholders I've tested so far.

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking