Passage
Ye are my friends if ye practise whatever I command you.
Ye are my friends if ye practise whatever I command you.
John 15:12 This is my commandment, that ye love one another, as I have loved you.
John 15:13 No one has greater love than this, that one should lay down his life for his friends.
John 15:14 Ye are my friends if ye practise whatever I command you.
John 15:15 I call you no longer bondmen, for the bondman does not know what his master is doing; but I have called you friends, for all things which I have heard of my Father I have made known to you.
John 15:16 Ye have not chosen me, but I have chosen you, and have set you that ye should go and [that] ye should bear fruit, and [that] your fruit should abide, that whatsoever ye shall ask the Father in my name he may give you.
The verse centers on "friends", "practise", "whatever", and "command". It is saying that the verse draws attention to "friends" and "practise", so its meaning should be read from those terms before moving to application.
The nearby context moves from verse 13's "No one has greater love than this..." into verse 15's "I call you no longer bondmen for...", so "friends" and "practise" belong inside that flow. In John context, the local focus is the identity of Jesus, new birth, eternal life, and belief and unbelief.
A plain takeaway is to answer the verse's own emphasis on "friends" and "practise" with trust shaped by these words, not by a vague optimism outside the passage.