You did fine, I understood what you meant. Your English is excellent, flawless enough that I didn't know you weren't a native.
Here's an example of what would happen if your idea was implemented. I'm hard-wrapping the lines here just because the forums field is so wide, but pretend the ends of each line have hit the maximum of the script editor for this example:
Code: Select all
if there is not a background "_DataGridTemplateInstructions_" of stack
tStackName then
copy group "_DataGridTemplateInstructions_" of stack kResourceStack to card
1 of stack tStackName
set the backgroundBehavior of group "_DataGridTemplateInstructions_" of card
1 of stack tStackName to true
end if
repeat with i = 1 to the number of cards of stack tStackName
if there is not a group "_DataGridTemplateInstructions_" of card i of stack
tStackName then
place group "_DataGridTemplateInstructions_" onto card i
set the bottomleft of group "_DataGridTemplateInstructions_" of card i to
0, the height of card i
end if
end repeat
Here is the same snippet as normally displayed:
Code: Select all
if there is not a background "_DataGridTemplateInstructions_" of stack tStackName then
copy group "_DataGridTemplateInstructions_" of stack kResourceStack to card 1 of stack tStackName
set the backgroundBehavior of group "_DataGridTemplateInstructions_" of card 1 of stack tStackName to true
end if
repeat with i = 1 to the number of cards of stack tStackName
if there is not a group "_DataGridTemplateInstructions_" of card i of stack tStackName then
place group "_DataGridTemplateInstructions_" onto card i
set the bottomleft of group "_DataGridTemplateInstructions_" of card i to 0, the height of card i
end if
end repeat
It is difficult to follow the logic in the first example because you can't skim the first word of each line to see what is happening. In the second example, I can see generally what is going on very quickly (except that this forum editor has wrapped one of the lines by itself):
if something
copy something
set something
end if
repeat for some condition
if something
place something
set something
end if
end repeat
The logic flow is immediately apparent. This is typical of all code editors. And even though not all languages use return characters to separate commands, coders almost always add the carriage returns anyway just to make it easier to read and follow.