• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

anyone use JMeter?

lozina

Lifer
what is the proper syntax for comparing a string value to put into the Condition field of a while loop?

LEt's say I needed to compare a variable called name to "Bob"

simply doing: ${name} == "Bob"
does not seem to work
 
You guys know what I'm talking about? I don't think you can put Java code in this condition field... I tried it anyway and confirmed it does not work:

${name}.equals("Bob") <= does not work
 
wtf is this ${name}?
.equals returns true if they are equal, so

String name = "Bob";
while(name.equals("Bob")) {

}

Edit:
Also why is jmeter the topic?
 
What in the world are you trying to do? Where are you getting this "${name}" stuff from? Give us a broader snippet of code and a broader idea of what you're trying to do.
 
Back
Top