Questions tagged [evaluate]

execution of evaluations of expressions or evaluation functions. Use tag evaluation for rules, algorithms, and strategies of the evaluation.

What is it?

Evaluation is about rules, algorithms and strategies used for the evaluation of expressions or the computation of evaluation functions.

This tag may should be used for the execution of evaluations.

Related tags

  • Prefer the tag if the question is about rules, algorithms and strategies used for the evaluation of expressions or the computation of evaluation functions.
  • For more specific questions use tag

See also:

470 questions
1
vote
3 answers

comparing if today is birthday

I have a custom field, attached to a custom post The custom post is a profile (user) the Custom field a date, stored as a unix timestamp. I evaluate like this: function born_today_func( $atts ) { extract(shortcode_atts(array( 'birthday' =>…
user3934058
1
vote
0 answers

Describe object path by string

I have an object. var o = {a : {b : 1}}; In order to access the value of o.a.b via string 'a.b', I will normally think about this. var ab = 'a.b'.split('.'); console.log(o[ab[0]][ab[1]]); Is there a more elegant way of doing the same stuff?
user3925697
  • 609
  • 2
  • 8
  • 17
1
vote
2 answers

VBA - How to get the result of a formula ? (.Value always returns 0)

I want to get the result of a formula contained in a cell, but I always get 0 returned, instead of the real results. I have the following: Set c = .Cells (5,5) MsgBox (c.Formula) ' this return the following: = ASIN (W22-V22/$D$7)*180/PI() MsgBox…
Leon
  • 255
  • 1
  • 4
  • 11
1
vote
2 answers

Objective-C && doesn't short circuit for !var

Try running this: UIView *testView = nil; NSLog(@"Take 1"); NSString *message = @"view doesn't exist"; if (!testView && !testView.subviews) { message = @"this message should never appear" ; } NSLog(message); NSLog(@"Take 2"); message = @"view…
snowbound
  • 1,692
  • 2
  • 21
  • 29
1
vote
1 answer

Evaluate javascript to plain text using C#, .NET 3.5

How can I evaluate's document.write javascript to plaintext in C#? I'm trying to evaluate this: to this: 2_3
Dmi
  • 645
  • 1
  • 11
  • 22
1
vote
2 answers

coldfusion store variables in table and output without using Evaluate

I have come across a scenario that I don't know how to avoid using Evaluate. I have stored in a database table session vars and when I output the query results, I want to show the value of the session var. so here's the set up: INSERT THE…
1
vote
1 answer

In-fix Expression Evaluation - NoSuchElementFound Exception

My assignment is to evaluate expressions read in from a file, such as (4-7)/2+6<3*(1-9). < and > mean minimum and maximum, respectively, and have a higher precedence than / and *. However, I am getting a NoSuchElementFound exception when attempting…
Finlev
  • 13
  • 2
1
vote
1 answer

Java: Use String as part of source code

Today I have a question that I had on my mind for years now. Consider you have the following evaluation in Java: new EvaluationListener(){ public boolean evaluate(boolean[] b){ return b[0] || b[1]; } } I am using this code in my…
Brian
  • 1,318
  • 1
  • 16
  • 33
1
vote
2 answers

Excel - Convert String to a formula

I have a formula that is generated via a series of concatenated strings. This is better explained with an example: open a new Excel workbook A1 = 5 C1 = 5 & "+A1" [A1 is seen as text. C1 will contain "5+A1" ] I would like E1 to contain the…
sharkyenergy
  • 3,842
  • 10
  • 46
  • 97
1
vote
1 answer

XPath Expression returns 'illegal string specified' in Chrome but not FF

so this is an xPath expression which runs fine in a Firefox userscript but fails in a (native) chrome userscript: var nodesSnapshot = document.evaluate("//a[@class='inline-object' and .[contains(@href,'test.com')] ]", document, null,…
user2305193
  • 2,079
  • 18
  • 39
1
vote
1 answer

Still can't get basic Symja evaluation to work

I have been trying to get Symja to work in my Eclipse project for about a week, but so far have been unsuccessful. It is becoming rather frustrating to me seeing countless runtime errors so I am hoping someone would be willing to help me out in…
user2391236
1
vote
1 answer

Getting an evaluated answer to read on display

Just wondering if anyone can advise on how to get the evaluated answer at the end of this piece of JS to read on the display ID that I have created? function setup() { var i; for (i = 0; i <= 9; i++) { document.getElementById(i).onclick =…
owlwink
  • 91
  • 9
1
vote
1 answer

Message 102, wrong syntax near '>'

I wanted to evaluate a simple iif-statement on Transact SQL, but the debugger always returns the message, there's an error near '>'. So I also tried one of the examples, given in the MSDN, but that failed either. These are the statements I want to…
1
vote
2 answers

string 'w32' == 0 evaluates to true in php. huh?

So I was getting a notice in my php while creating a google product feed. The notice was "The following php notice has occurred 4989 times on the _ site today: PHP Notice: Undefined index: 0 in /xxx/Status.php on line 583" This was the code in that…
Mr. Berzerk
  • 33
  • 1
  • 7
1
vote
0 answers

Auto click a link using casperJS evaluate

I have the following HTML
 
user2129794
  • 2,388
  • 8
  • 33
  • 51