Help

Re: How do I align my output text if they're nested inside if statement?

1231 0
cancel
Showing results for 
Search instead for 
Did you mean: 

I’m training my JS muscle and have been playing around with the scripting block.
I’ve extended the currency conversion example, however I can’t figure out have to get my output text aligned when they’re nested?

Screenshot 2020-03-19 at 17.18.35

Anyone who knows if I’m doing something wrong?

10 Replies 10

I personally rarely use output.table() for queryResult.records.
I only ever output queryResult.records for debugging purposes, and for debugging, I don’t care if the index column appears or not.

I usually use output.table() for arrays of objects with keys of my own choosing based on the data I that I want to display. Usually, just before output.table(), I map the key names to more user-friendly names and omit any keys that I don’t want to display.