• Resolved supersvetodiod

    (@supersvetodiod)


    Hi, pls, hlp

    Have a code:

    …else if( AND(fieldname3, fieldname40) ){
    result = ROUND(fieldname3*fieldname40, 0.0000001);

    html=’Power is‘+result+’ W‘….

    initial data:

    fieldname3 = 2 Joules and Fieldname40 = 23 seconds

    with the source data and the above code we get in html text field, that the “Power is 0.09 W”

    How can I implement a response like:

    “Power (P) at energy W = 2 Joules, and time T = 23 seconds is 0.09 Watts”

    That is, I need to implement it so that the data entered by a person from the fields is automatically substituted in the response.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello

    In this case, instead of the piece of code:

    html='Power is ' + result + ' W';

    You can implement it as follows:

    html='Power (P) at energy W = ' + fieldname3 + ' Joules, and time T = ' + fieldname40 + ' seconds is ' + result + ' Watts';

    Best regards.

    Thread Starter supersvetodiod

    (@supersvetodiod)

    Thank you very much. I did this before contacting you, calculations disappear. I’ll be watching… maybe I made a mistake in parentheses

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘data output in text format’ is closed to new replies.