Nicklas
Posts: 0
Joined: Thu Jul 03, 2014 8:51 am

If higher than number

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.

Nicklas
Posts: 0
Joined: Thu Jul 03, 2014 8:51 am

If higher than number

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));

Nicklas
Posts: 0
Joined: Thu Jul 03, 2014 8:51 am

If higher than number

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.

Nicklas
Posts: 0
Joined: Thu Jul 03, 2014 8:51 am

If higher than number

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.

Nicklas
Posts: 0
Joined: Thu Jul 03, 2014 8:51 am

If higher than number

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.

Nicklas
Posts: 0
Joined: Thu Jul 03, 2014 8:51 am

If higher than number

The code will not be show what i wrote in here!

Nicklas
Posts: 0
Joined: Thu Jul 03, 2014 8:51 am

If higher than number

Image

This is what i ment!!

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

If higher than number

Hi Nicklas,

Are there any errors in the browser console?

Nicklas
Posts: 0
Joined: Thu Jul 03, 2014 8:51 am

If higher than number

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.

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

If higher than number

Hello,

Please try this code :

codevar one = parseFloat(Appery("number1").val());
var two = parseFloat(Appery("number2").val());
if (one >= 0 && one <= 10) {Appery("ans1")&#46;val(5);}
if (two >= 11 && two <= 20) {Appery("ans2")&#46;val(15);}
/code

Return to “Issues”