I’ll bang this one on here using a #Group
to return true or false for use in some #Prompt Prop(Prop:Readonly, %grpFuncReadOnlyFlag() )
conditions.
#Prompt('Some Text:',@s255),%symbol,Prop(Prop:ReadOnly,%grpFuncReadOnlyFlag() )
#Group(%grpFuncReadOnlyFlag)
#IF(condition = %true)
#Return %True
#Else
#Return %False
#EndIF
I haven tried expanding it for more complicated situations like
PROP(PROP:Format,'100L(1)|M~Control~F500L(1)|M~Friendly name~')
to
PROP(PROP:Format,%StringSymbol)
#Group(%grpFormatString,*%StringSymbol)
#IF(condition)
#Set(%StringSymbol,'100L(1)|M~Control~F500L(1)|M~Friendly name~')
#Else
#Set(%StringSymbol,'200L(1)|M~Control~F700L(1)|M~Friendly name~')
#EndIF
but it might work!