10-27-2019, 08:30 PM
I dare say it's silly enough. I have a piece of code in Gimp that reads:
to variously modify the name of my issue file.
It works to do what I wish, but it looks as ungainly as a five-legged mammoth.
Please, is there some more elegant way to achieve the same?
I have been reading about 'lambdas', but nothing seemed applicable...
And, if my quesion is as foolish as I feel at posting it, please disregard it...
Code:
postfix='_xcf.webp'
if GS: postfix='-GS' + postfix
if crop: postfix='-crop' + postfix
theName=name + postfix
It works to do what I wish, but it looks as ungainly as a five-legged mammoth.
Please, is there some more elegant way to achieve the same?
I have been reading about 'lambdas', but nothing seemed applicable...
And, if my quesion is as foolish as I feel at posting it, please disregard it...