Page 1 of 2
If higher than number
Posted: Fri Aug 08, 2014 10:37 pm
by Nicklas
Hello!
Need help with this thing:
var var1 = parseFloat(Appery("number1").val());
var var2 = parseFloat(Appery("number2").val());
var one = (var1 = 0 && var1 = 11 && var2 ).val (15));
This works in a browser but not in the app.
If higher than number
Posted: Fri Aug 08, 2014 10:39 pm
by Nicklas
No this is the code:
var var1 = parseFloat(Appery("number1").val());
var var2 = parseFloat(Appery("number2").val());
var one = (var1 = 0 && var1 = 11 && var2 ).val (15));
If higher than number
Posted: Fri Aug 08, 2014 10:39 pm
by Nicklas
Hello!
Need help with this thing:
var var1 = parseFloat(Appery("number1").val());
var var2 = parseFloat(Appery("number2").val());
var one = (var1 = 0 && var1 = 11 && var2 ).val (15));
This works in a browser but not in the app.
If higher than number
Posted: Fri Aug 08, 2014 10:40 pm
by Nicklas
Hello!
Need help with this thing:
var var1 = parseFloat(Appery("number1").val());
var var2 = parseFloat(Appery("number2").val());
var one = (var1 = 0 && var1 = 11 && var2 ).val (15));
This works in a browser but not in the app.
If higher than number
Posted: Fri Aug 08, 2014 10:42 pm
by Nicklas
Hello!
Need help with this thing:
var var1 = parseFloat(Appery("number1").val());
var var2 = parseFloat(Appery("number2").val());
var one = (var1 = 0 && var1 = 11 && var2 ).val (15));
This works in a browser but not in the app.
If higher than number
Posted: Fri Aug 08, 2014 10:42 pm
by Nicklas
The code will not be show what i wrote in here!
If higher than number
Posted: Fri Aug 08, 2014 10:43 pm
by Nicklas
This is what i ment!!
If higher than number
Posted: Sat Aug 09, 2014 4:10 am
by Illya Stepanov
Hi Nicklas,
Are there any errors in the browser console?
If higher than number
Posted: Sat Aug 09, 2014 9:12 am
by Nicklas
No, its not.
I feel that I didn't explained anything. HeHe
I want ans1 (Input) to show me 5 if number1 is higher than 0 and lower than 10.
And ans2 (Input) to show me 15 is number2 is higher than 11 and lower than 20.
If higher than number
Posted: Mon Aug 11, 2014 12:02 am
by Alena Prykhodko
Hello,
Please try this code :
codevar one = parseFloat(Appery("number1").val());
var two = parseFloat(Appery("number2").val());
if (one >= 0 && one <= 10) {Appery("ans1").val(5);}
if (two >= 11 && two <= 20) {Appery("ans2").val(15);}
/code