Original Post
I dont do much web dev stuff so there is probably a pretty simple reason for this but I dont know what it is whats the reason for this, is there a way to pass what I want to check for to Exists() in a var?
var lookup = Server.CreateObject("Scripting.Dictionary");
lookup.Add("aaa", "Apple");
lookup.Add("bbb", "Bread");
lookup.Add("ccc", "Chicken");
lookup.Add("ddd", "Duck");
// this doenst works?
//var find = new String("ccc");
//var found = lookup.Exists(find); // whenever var is passed cant find it
// this does
var found = lookup.Exists("ccc");
if(found) {
Response.Write("Found " + find);
}
else {
Response.Write("Did Not Find " + find);
}