Skip to main content
kingsleyj4929
New Participant
Jan 24, 2024 5:18 AM UTC
Question

about new line

Hi,

what is the code for seperate lines. Should cut to next line

    7 replies

    Participating Frequently
    Jan 24, 2024 5:28 AM UTC

    Hi [mention:4de4ccc7bc0a4873ba4ae1865db3ad49:e9ed411860ed4f2ba0265705b8793d05] ,

    You can make use of char(10) to enter next line. 

    Thanks

    kingsleyj4929
    New Participant
    Jan 24, 2024 5:38 AM UTC

    Thank you so much supriya

    harshitb6843
    Brainy
    Jan 24, 2024 5:56 AM UTC

    You can use this site to get Unicode values of any character you are trying to input in your code - symbl.cc/.../

    Participating Frequently
    Jan 24, 2024 5:35 AM UTC

    a!textField(
      readOnly: true,
      value: "Above" & char(10) & char(10) & "below"
    )

    The above code snippet is a small example for next line, hope this helps you.

    Thanks

    Supriya

    Participating Frequently
    Jan 24, 2024 5:37 AM UTC

    Another small example for next line

    a!forEach(
      items: enumerate(10),
      expression: "The new number is - "&fv!item&char(10)
    )

    mikes0011
    Brainy
    Jan 24, 2024 2:28 PM UTC

    Also note that depending on how you view the rule ouptut, newlines may be flattened.  The default, "formatted" option, when the output is plaintext, is particularly bad about showing the actual formatting of the outputted text, sadly.

    Now if we switch the output to "Raw" we'll actually get a glimpse of what this text would look like elsewhere (like inserted into the DB, in a paragraph field, etc).

    The Expression Guru
    kingsleyj4929
    New Participant
    Jan 25, 2024 4:20 AM UTC

    Thank you so much