The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bug with qval???
Author Message
admin phoenix
Master
**

Posts: 354
Likes Given: 1
Likes Received: 23 in 13 posts
Joined: Mar 2012
Reputation: 3



Post: #1
Bug with qval???
I used this one in my script and it doesn´t work

PHP Code:
RETURN <qval <eval <magery>> > <eval <Necromancy>> ? <magery> : <Necromancy> > 

when I use this one it works

PHP Code:
RETURN <qval <eval <magery>> < <eval <Necromancy>> ? <Necromancy> : <magery> > 

it has nothing to do with the return function. I tried it in different way with a function or directly in the code.same result

gr

phoenix
04-14-2013 04:32 AM
Find all posts by this user Like Post Quote this message in a reply
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #2
RE: Bug with qval???
Never used it that way, not saying you can't I have no idea....
I have only ever done

Code:
if <qval <eval <magery>> < <eval <Necromancy>> ? <Necromancy> : <magery> >

[Image: 2nis46r.jpg]
04-14-2013 04:47 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
admin phoenix
Master
**

Posts: 354
Likes Given: 1
Likes Received: 23 in 13 posts
Joined: Mar 2012
Reputation: 3



Post: #3
RE: Bug with qval???
small than works as I said.
I tried it also with
local.test=<qval <eval <magery>> > <eval <Necromancy>> ? <magery> : <Necromancy> >
serv.log <local.test>
04-14-2013 05:35 AM
Find all posts by this user Like Post Quote this message in a reply
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #4
RE: Bug with qval???
Oh sorry.. misunderstood...

That's because the entire argument is closed with a >
Just rearrange your argument you'll be fine, not sure if it is a bug or what though I did mention it in the wiki page.

[Image: 2nis46r.jpg]
04-14-2013 06:52 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Ben
Sphere Developer
*****

Posts: 612
Likes Given: 2
Likes Received: 123 in 70 posts
Joined: Mar 2010
Reputation: 18

SphereCommunity

Post: #5
RE: Bug with qval???
Not sure how to clasify this one, bug or limitation...
The text parser is not designed in a way to easely deal with issues like this. I'll look into it a little deeper, but I'm not sure I'll be able to fix this without a complete redesign.

AxisII's current version: 2.0.4j
AxisII SourceCode on Github
AxisII up to date changelog
04-14-2013 10:52 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
admin phoenix
Master
**

Posts: 354
Likes Given: 1
Likes Received: 23 in 13 posts
Joined: Mar 2012
Reputation: 3



Post: #6
RE: Bug with qval???
and it has nothing to do with eval.
I can do it without eval and i had the same result

@ben
for me and this code it´s not a problm because I can turn around the code.
04-14-2013 11:37 PM
Find all posts by this user Like Post Quote this message in a reply
Ben
Sphere Developer
*****

Posts: 612
Likes Given: 2
Likes Received: 123 in 70 posts
Joined: Mar 2010
Reputation: 18

SphereCommunity

Post: #7
RE: Bug with qval???
The more I look at it, the only way to "fix" this type of issue would be to change how to output variables.
Since major syntax changes are not welcome, it's gonna have to stay this way.

AxisII's current version: 2.0.4j
AxisII SourceCode on Github
AxisII up to date changelog
04-15-2013 08:38 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #8
RE: Bug with qval???
It's possible that the 2nd way to use qval
PHP Code:
QVAL(VALUE1,VALUE2,LESSTHAN,EQUAL,GREATERTHAN
was implemented as a workaround for that bug/limitation Shock ?

his code will be like

PHP Code:
return <eval QVAL(<magery>,<necromancy>,<necromancy>,<necromancy>,<magery>)> 
(This post was last modified: 04-15-2013 09:37 AM by darksun84.)
04-15-2013 09:35 AM
Find all posts by this user Like Post Quote this message in a reply
admin phoenix
Master
**

Posts: 354
Likes Given: 1
Likes Received: 23 in 13 posts
Joined: Mar 2012
Reputation: 3



Post: #9
RE: Bug with qval???
understand.
will give a try Smile
thanks!

@ben
wiki said this
http://wiki.sphere.torfo.org/index.php/QVAL
the example is like my code I think so but with onyl smaller than ....
(This post was last modified: 04-15-2013 04:50 PM by admin phoenix.)
04-15-2013 04:45 PM
Find all posts by this user Like Post Quote this message in a reply
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #10
RE: Bug with qval???
Which is as I said the work around to avoid the issue

Code:
<qval <eval <magery>> > <eval <Necromancy>> ? <magery> : <Necromancy> >

Is the same as:

Code:
<qval <eval <Necromancy>> < <eval <magery>>  ? <magery> : <Necromancy> >

except doing it the 2nd way will not result in closing the argument prematurely.

[Image: 2nis46r.jpg]
04-15-2013 10:44 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 3 Guest(s)