Improvement requests
: K-Meleon Forum
Use this forum to talk about a feature you're missing. Use the bug tracker to report it if necessary.
Goto:
Forum List
•
Message List
•
Search
•
Log In
Your Name:
Subject:
Help information
BBcode help
Smileys help
[quote=JamesD] [quote=siria] Hmm, I'm not sure if that's it. IIRC the wiki says in formulas it doesn't matter whether it's a string or an integer, KM will always take the number in the string and work with that. So far that was always true in my macros too. There I rather suspect the prob lies here: $_QuickStore_DelCount > $_QuickStore_CurrCount ? You see, there's just no "MaxCount" defined yet... [/quote] And yet adding the line with the math makes the macro work. DelCount is the user's response in a prompt. CurrCount is the total existing items and comes from an 'INT' type pref. I suspect the default for the value returned by prompt is type 'STRING'. There is no MaxCount variable in the macro. Edit: There is a second possible way to fix the code. It does not require the math code line. If we reverse the order of the variables in the comparison such that the integer variable is on the left, it seems to work. This is the original and revised comparisons: [code] $_QuickStore_DelCount > $_QuickStore_CurrCount $_QuickStore_CurrCount < $_QuickStore_DelCount [/code] Somehow this needs to make it into a FAQ or something. KM uses the variable type from the left hand side.[/quote]
[Please Enable JavaScript]
K-Meleon forum is powered by
Phorum
.
Home/News
Screenshots
Download
Documentation
Resources
Get Involved
Forum
Bugs
Development