おはようございます。Crystal で書いているレポートの数式を作成しようとしています。このレポートでは、年収を 10,000 単位で昇順にグループ化しています。これまでのところ、適切な「if-then」パターンであると信じていたものに従ってきました。しかし、「残りのテキストは数式の一部ではないようです」というエラーが表示されます。コードの内容は次のとおりです。
crAscendingOrder
if{ss_client_data_set.income}< 10001 then "$0 to $10,000"
if{ss_client_data_set.income}< 20001.00 then "$10,001 to $20,000"
if{ss_client_data_set.income}< 30001.00 then "$20,001 to $30,000"
if{ss_client_data_set.income}< 40001.00 then "$30,001 to $40,000"
if{ss_client_data_set.income}< 50001.00 then "$40,001 to $50,000"
if{ss_client_data_set.income}< 60001.00 then "$50,001 to $60,000"
if{ss_client_data_set.income}< 70001.00 then "$60,001 to $70,000"
if{ss_client_data_set.income}< 80001.00 then "$70,001 to $80,000"
if{ss_client_data_set.income}< 90001.00 then "$80,001 to $90,000"
if{ss_client_data_set.income}< 100001.00 then "$90,001 to $100,000"
if{ss_client_data_set.income}< 110001.00 then "$100,001 to $110,000"
if{ss_client_data_set.income}< 120001.00 then "$110,001 to $120,000"
if{ss_client_data_set.income}< 130001.00 then "$130,000 and over"
エラー チェッカーはコードの最後の 12 行のみを強調表示します。私は少しさびているので、誰かアドバイスがあれば、とても感謝しています。
ありがとうございました